IDigBio API v1 Examples: Difference between revisions

add blurb about JSON
mNo edit summary
(add blurb about JSON)
Line 6: Line 6:


=== Viewing JSON Output ===
=== Viewing JSON Output ===
Javascript Object Notation ([http://en.wikipedia.org/wiki/JSON JSON]), is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. JSON has become a common format for interchanging data via APIs and especially modern Web Services. Effective use of the iDigBio API will require some understanding of JSON.
==== JSONView Browser Extension ====
For best viewing of JSON results in a browser, one may wish to use the JSONView Extension for Chrome and Firefox.
[[File:JSONView_browser_extension_example.png|border|JSONView extension allows easier viewing in a web browser]]


Most of the examples provided here will be shown using the <code>curl</code> command-line tool.  Here are some of the more commonly used curl options (for descriptions and additional usage information, see the curl man page):
Most of the examples provided here will be shown using the <code>curl</code> command-line tool.  Here are some of the more commonly used curl options (for descriptions and additional usage information, see the curl man page):
Line 63: Line 73:
}
}
</pre>
</pre>
For best viewing of JSON results in a browser, one may wish to use the JSONView Extension for Chrome and Firefox.
==== JSONView Browser Extension ====
[[File:JSONView_browser_extension_example.png|border|JSONView extension allows easier viewing in a web browser]]


==== simplejson ====
==== simplejson ====
1,554

edits