Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-line output #27

Open
chris-martin opened this issue Feb 28, 2018 · 0 comments
Open

Single-line output #27

chris-martin opened this issue Feb 28, 2018 · 0 comments

Comments

@chris-martin
Copy link

Feature request: I'd like to be able to encode JSON with spaces but without line breaks.

For example, let x = Array (fromList [Number 1, Number 2]).

  • encode x produces "[1,2]"
  • encodePretty x produces "[\n 1,\n 2\n]"
  • What I'd like is "[1, 2]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant