-
Notifications
You must be signed in to change notification settings - Fork 52
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
Pretty-print JSON output #132
Comments
Sounds good! Note that if you're on the command line, you can pipe your output through e.g. |
It's just a matter of convenience. I use Safari mostly and I don't think I can get Safari to pretty-print, but having a query parameter saves me from opening the debugger all the time anyway. Also, I use |
I'll look into this. |
Can you better explain what you would like to see? I'm not sure I'm quite getting it. |
@thomasvnoort is on vacation... We discussed it a bit. We would like something that adds a One idea is to have prettyJsonO/prettyXmlO combinators. When writing an api you can make sure to just use that instead of the normal combinators. I think this needs #20. This means you could forget it, but in practice you can have a re-export module that only exposes the combinators you want to us. Another way is to implement it directly in the driver, that could be done right now. It would require some way to configure this, probably a parameter to |
It would be great if there would be a way to instruct rest to pretty-print JSON output. Many web services offer this by passing a
pretty
query parameter. I understand that this will reserve a name, so it should definitely be optional and configurable.The text was updated successfully, but these errors were encountered: