1,554
edits
(add note about json.tool and json_pp) |
m (change headings to bold) |
||
Line 12: | Line 12: | ||
</pre> | </pre> | ||
We make this easier to read | We make this easier to read if we pipe the output through a formatter such as python's json.tool or the json_pp command-line Perl script (JSON::PP). | ||
'''json.tool Example''' | |||
<pre> | <pre> | ||
$ curl -s http://api.idigbio.org/ | python -m json.tool | $ curl -s http://api.idigbio.org/ | python -m json.tool | ||
Line 24: | Line 24: | ||
</pre> | </pre> | ||
'''json_pp Example''' | |||
<pre> | <pre> | ||
$ curl -s http://api.idigbio.org/ | json_pp | $ curl -s http://api.idigbio.org/ | json_pp | ||
Line 34: | Line 34: | ||
</pre> | </pre> | ||
'''JSONView Browser Extension Example''' | |||
Here goes a screenshot. | Here goes a screenshot. |
edits