Add option to pretty-print json encoding
Merge pull request #1357 from njam/json-options

Add option to pretty-print json encoding