Chapter 14. Working with XML and JSON
This chapter covers
- Reading and writing XML and JSON
- Transforming treelike structures in-place and as streams
- Navigating inside structured data
Perfection is achieved not when you have nothing more to add, but when you have nothing left to take away.
Antoine de Saint-Exupéry
Computing means applying logic to data. We retrieve data, process it, and store it again. Processing is the essential activity while retrieving and storing are just necessities. All the aspects of various data formats, encodings, and access protocols can get complex, though, and the required work is likely to distract us. Groovy helps us to stay focused by making the data handling part almost transparent.
We’re going to explore two ...
Get Groovy in Action, Second Edition 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.