IDigBio API v1 Examples: Difference between revisions

Jump to navigation Jump to search
m
change headings to bold
(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 by a human if we pipe the output through a formatter such as python's json.tool or the json_pp command-line Perl script (JSON::PP).
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 ====
'''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 ====
'''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 ====
'''JSONView Browser Extension Example'''


Here goes a screenshot.
Here goes a screenshot.
1,554

edits

Navigation menu