Chapter 8. Java API for JSON Processing

JSON (short for JavaScript Object Notation) is a lightweight data interchange format. JSON's primary advantage over other data interchange formats such as XML is that JSON is both easy for humans to read and easy for computers to generate and parse. It is commonly used in many modern web applications.

Java EE 7 introduces the Java API for JSON Processing (JSON-P), which is a standard Java EE API to parse and generate JSON data.

JSON-P provides two ways to both parse and generate JSON data: the object model API and the streaming API.

In this chapter, we will cover the following topics:

  • The JSON-P object model API:
    • Generating JSON data with the JSON-P object model API
    • Parsing JSON data with the JSON-P object model ...

Get Java EE 7 Development with NetBeans 8 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.