JsonSerializer and PrettyPrinting for output json

5 views
Skip to first unread message

David Marko

unread,
Nov 19, 2015, 5:16:43 AM11/19/15
to Jodders
Is there a way how to instruct JsonSerializer to format the json output so when saved to file it is nicely formatted?

thanks

e.g. in Gson there is .setPrettyprinting() method:
Gson gson = new GsonBuilder().setPrettyPrinting().create();

Jodders

unread,
Nov 19, 2015, 5:54:13 AM11/19/15
to Jodders
It happened this to be not a trivial task :) So its on todo ;))))
Reply all
Reply to author
Forward
0 new messages