Concepts
These pages explain how ZIO JSON works and why it behaves the way it does. Read them to understand a behaviour or a trade-off. For exact signatures and options, see the Reference; for step-by-step tasks, see the How-to Guides.
- How ZIO JSON Works: the design that makes it fast and safe, and how derivation finds instances.
- Scala 2 and Scala 3 Differences: every behaviour that differs between the two versions, and a migration checklist.
- How Strict Is the Decoder: what the decoders accept beyond strict JSON, and how to add stricter checks.
- JSON Shapes and Round Trips: how each kind of sum-type case is written, and which values do not survive an encode then decode.
- Performance: benchmarks and tips for fast encoding and decoding.
- Security: how ZIO JSON handles hostile input, and what you still need to limit yourself.