Developing with JSON

The basic interchange format used by Smart911Connect is JSON (JavaScript Object Notation).  While XML is also an option for integration, we’ll explain the preference for JSON.

XML is a valid option as an interchangeable data serialization format. XML provides two advantages as a data representation language over previous models: 1) It is text-based, and 2) It is position independent.  The challenge is that XML carries a lot of unnecessary overhead.

JSON is a lightweight data-interchange format. It is both easy to read and write, and efficient for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition – December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

In short, JSON provides all the capabilities of XML in a much more efficient and widely used format.

IETF’s page on JSON is here: http://www.ietf.org/rfc/rfc4627.txt

Another great resource is http://www.json.org/