#dart:convert example
How to pretty-print JSON using Dart.
How to display JSON in an easy-to-read (for human readers) format.
Main library: dart:convert
Main element: JsonEncoder.withIndent
Gist: https://gist.github.com/kasperpeulen/d61029fc0bc6cd104602
DartPad: https://dartpad.dartlang.org/d61029fc0bc6cd104602
Tags: #json #pretty-print
Thanks for this, very useful.
I just made this into a small package to keep code clean: pretty_json