Browse Clojure Foundations for Java Developers

Data Serialization and Transit

Choose serialization formats (EDN, JSON, Transit) that preserve meaning across boundaries.

Serialization is where data modeling choices become painfully real. If you lose meaning at the boundary (time zones, numeric precision, keyword identity), everything downstream gets harder.

This section compares common options:

  • EDN for internal tools and Clojure-to-Clojure communication
  • JSON for broad interoperability
  • Transit when you want richer types across services while staying language-neutral

The goal is to pick formats intentionally and keep encode/decode logic at the edges.

In this section

Revised on Friday, April 24, 2026