CHAPTER 4B JSON Procesing
CHAPTER 4B JSON Procesing
Processing
Outline:
We will
implement
spring boot
REST
chapter 4 REST - JSON 5
Processing models for JSON data
Processing : reading, writing, querying, and modifying JSON data
A. Object model:
the entire JSON data is read into memory in a tree format.
This tree can be traversed, analyzed, or modified with the appropriate
APIs.
As this approach loads the entire content into the memory first and
then starts parsing, it ends up consuming more memory and CPU
cycles.
However, this model gives more flexibility while manipulating the
content.