Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2016-05

pretty print json output

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Does fpjson support an option to “pretty print” (neatly indent) generated JSON output?

Regards,
Graeme

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Hi, Does fpjson support an option to “pretty print” (neatly indent) generated JSON output?

Yes.
FormatJSON()

It is documented.

Michael.