CHAPTER 4B JSON Procesing - 855a2591a
CHAPTER 4B JSON Procesing - 855a2591a
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 modif ie d with the
appropriate APIs.
As this approach loads the entire content into the memory
f irst and then starts parsing, it ends up consuming more
memory and CPU cycles.
H o w e v e r, t h i s m o d e l g i v e s m o r e f le x i b i l i t y w h i l e
manipulating the content.
Output: