JSON

JSON Data Types

JSON Data Types

JSON stands for JavaScript Object Notation. It is a lightweight text-based data exchange format that is thoroughly standardized and heavily used in Industry. It was first specified by Douglas Crockford. It is detailed out in RFC 4627. The official Internet media type for JSON (that is used in application code's API header)is application/json. The JSON filename extension is .json. Almost all programming languages such as PHP, PERL, Python, Ruby, Java, etc have well defined constructs and external libraries to work with JSON. public.json is the main Type Identifier.

This article is organized into 12 sections. The first section gives a brief introduction to JSON. The second section describes its syntax. The 3rd section gives various data types in JSON. The next section talks about JSON objects. The fifth section describes JSON schema. The sixth section gives out comparison of JSON with another data exchange format called XML. The seventh section gives usage of JSON with Python The eighth section gives usage of JSON with Java. The 9th section gives usage of JSON with Ruby. The 10th section gives integration of JSON with Ajax. The penultimate section talks about how JSON is used in Perl.  The last section describes usage of JSON with PHP.