simple_codec

Unified API for JSON, TOML, YAML, XML

Planned MIT

Overview

simple_codec provides a unified API for encoding/decoding structured data across multiple formats. One interface, multiple backends.

Part of the Simple Eiffel ecosystem.

API Preview

-- Parse any format (auto-detected from extension)
codec: SIMPLE_CODEC
data: CODEC_VALUE

create codec
data := codec.parse_file ("config.toml")

-- Same API regardless of source format
name := data.string_item ("name")

-- Convert between formats
codec.to_file (data, "output.json", {CODEC_FORMAT}.json)