JSON Processing and JSON Binding
JavaScript Object Notation (JSON) is a human-readable data interchange format. As its name implies, JSON is derived from JavaScript. Jakarta EE provides support for two different APIs for JSON manipulation, namely Jakarta JSON Processing, which is a lower-level API allowing fine-grained control, and Jakarta JSON Binding, which is a higher-level API that allows us to easily populate Java objects from JSON data, as well as quickly generate JSON-formatted data from Java objects. In this chapter, we will cover both JSON Processing and JSON Binding.
JSON Processing includes two APIs for processing JSON: the Model API and the Streaming API. Both of these APIs will be covered in this chapter. JSON Binding transparently populates Java objects from JSON strings, as well as easily generates JSON strings from Java objects.
In this chapter, we will cover the following topics:
- Jakarta JSON Processing
- Jakarta JSON binding
Note
Example...