O'Reilly logo

Groovy in Action, Second Edition by Dierk König and Paul King with Guillaume Laforge, Hamlet D'Arcy, Cédric Champeau, Erik Pragt, and Jon Skeet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required