You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: