Java API for JSON Processing 1.0
The Java API for JSON Processing 1.0 was developed under JSR 353. This section gives you only an overview of the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr353/index.html.
What is JSON?
JavaScript Object Notation (JSON) is a lightweight data-interchange text format. It is based on a subset of JavaScript, but it is completely language independent. JSON format is often used for data exchanges between web client and web server or web service. But, it can be used whenever you need to store or transmit relatively small amounts of data that can easily be represented as a combination of name-value pairs.
JSON is built on two structures, which are: a collection of name-value pairs and an ordered list of values. These structures are made from three data types: object
, array
, and value
.
Object
An object is an unordered set of name:value
pairs within braces ({}
). After each name...