[2.1.0-Scala] Json prettyPrint?

427 views
Skip to first unread message

Alexandru Nedelcu

unread,
Mar 7, 2013, 10:03:23 AM3/7/13
to play-fr...@googlegroups.com
Hi folks,

Is there any way to pretty print a JsValue using Play's API?

I like to get JSON responses from my API that are pretty printed, so I
can visualize them better in the browser.

I see there is a commit that was made 16 days ago that added
prettyPrint to the Json object, but I'd rather stay on stable
versions:
https://github.com/playframework/Play20/pull/698/files

Thanks,

--
Alexandru Nedelcu
http://bionicspirit.com

Pascal Voitot Dev

unread,
Mar 7, 2013, 10:07:35 AM3/7/13
to play-fr...@googlegroups.com
Yes it was added after 2.1.0 so not available ill next version.
Meanwhile, you can have a look at the code and try to hack a bit ;)

Pascal


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Gaëtan Renaudeau

unread,
Mar 7, 2013, 10:31:34 AM3/7/13
to play-fr...@googlegroups.com

Alexandru Nedelcu

unread,
Mar 7, 2013, 11:04:53 AM3/7/13
to play-fr...@googlegroups.com
Thanks Gaëtan,

Yes, I think I'll use a plugin for now.
Alexandru Nedelcu
http://bionicspirit.com
Reply all
Reply to author
Forward
0 new messages