© Jeff Friesen 2016

JEFF FRIESEN, Java XML and JSON, 10.1007/978-1-4842-1916-4_7

7. Introducing JSON

Jeff Friesen

(1)Dauphin, Manitoba, Canada

Many applications communicate by exchanging JSON objects instead of XML documents. This chapter introduces JSON, tours its syntax, demonstrates JSON in a JavaScript context, and shows how to validate JSON objects in the context of JSON Schema.

What Is JSON?

JSON (JavaScript Object Notation) is a language-independent data format that expresses JSON objects as human-readable lists of properties (name-value pairs). Although derived from a nonstrict subset of JavaScript, code to parse JSON objects into equivalent language-dependent objects is available in many programming languages.

Note

JSON allows the Unicode ...

Get Java XML and JSON now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.