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

Would it be worth adding a pretty print option to all JSON payloads? #1119

Closed
Taytay opened this issue Oct 29, 2013 · 2 comments · Fixed by #1120
Closed

Would it be worth adding a pretty print option to all JSON payloads? #1119

Taytay opened this issue Oct 29, 2013 · 2 comments · Fixed by #1120
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@Taytay
Copy link

Taytay commented Oct 29, 2013

Suggestion for an enhancement:

I've been using request.reply(someObject) as my preferred way of returning JSON. However, now I want all of my JSON responses pretty-printed by default.
I looked for an option in Hapi to do that and didn't come across anything. It's not a massive deal, since I can instead do the JSON.stringify myself, but
A) I kinda expected it to be there since Hapi will happily call JSON.stringify for me
B) It would make this option easier to toggle for every response.

No worries if that's beyond the scope of Hapi, but wanted to mention it as a possibility.

@Taytay
Copy link
Author

Taytay commented Oct 30, 2013

Wow! That was fast! Thanks! :)

@Marsup Marsup added feature New functionality or improvement and removed request labels Sep 20, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants