Browse Clojure Foundations for Java Developers

JSON and XML Processing

Move data across boundaries (JSON/XML) while keeping internal data shapes consistent.

JSON and XML are boundary formats. Your goal is to decode them into a clear internal data shape, do your work on plain maps/vectors, and then encode a response.

Practical concerns Java developers will recognize:

  • handling missing/null fields (nil vs null)
  • keyword vs string keys (choose one convention and stick to it)
  • time and numeric precision (don’t accidentally turn money into a double)

This section teaches the habits that keep “parsing + transformation + output” predictable and testable.

In this section

Revised on Friday, April 24, 2026