How to Customize JSON Field Names, ADT Encoding and Optional Fields
Change the JSON shape a Schema produces: snake_case names, renamed fields, type discriminators, null handling and strict decoding.
How to Override the Codec for One Type Everywhere
Encode LocalDate (or any type) your own way in every derived codec by registering one custom codec on the deriver.
How to Write a Codec for a New Wire Format
Write a BinaryCodec and its Deriver for a format ZIO Blocks doesn't ship, report decode errors with paths, and package it as a BinaryFormat.
How to Read and Modify JSON Without Case Classes
Parse JSON into a tree, read and change values by path, print it back, and decode only the part you need into a case class.
How to Read and Write YAML Documents
Read YAML files into case classes, write CI-style YAML from Scala values, convert to JSON, and guard against the YAML that schema-yaml silently misreads.
How to Read and Write CSV and TSV Files
Read CSV and TSV files into case classes by header name, report every bad row, write records back out and process large files row by row.
How to Encode and Decode Records with Avro
Derive an Avro codec for order events, write the .avsc schema, encode and decode records and streams, and read the bytes with Apache Avro.
How to Store Case Classes in MongoDB
Derive a BSON codec from a Schema, store support tickets in MongoDB with the Java driver, and pick how sealed traits and options are stored.
How to Send Compact Data to an LLM with TOON and Parse the Reply
Encode records as tabular TOON for an LLM prompt, then decode the model's TOON reply back into case classes.