July 2014
Intermediate to advanced
898 pages
20h 39m
English
JSON, or JavaScript Object Notation, is:
printlns or with one of several APIs.
A simple JSON message might look like this:
softwareinfo.json
{"name":"robinparse","version":"1.2.3","description":"Another Parser for JSON","className":"RobinParse","contributors":["Robin Smythe","Jon Jenz","Jan Ardann"]}
As you can see, the syntax is simple, nestable, and amenable to human inspection.
The JSON home page provides a concise summary of JSON syntax.
There are two kinds of structure: JSON Objects (maps) and JSON Arrays (lists).
JSON Objects are sets of name and value pairs, which can be represented
either as a java.util.Map or as the properties of
a Java object. For example, the fields of a LocalDate (see Finding Today’s Date) object
for April 1, 2014, might be represented as:
{"year":2014,"month":4,"day":1}
JSON Arrays are ordered lists, represented in Java either as arrays or as java.util.Lists.
A list of two dates might look like this:
{[{"year":2014,"month":4,"day":1},{"year":
Read now
Unlock full access