Goal
Add binary serialization formats alongside the text formats already supported (JSON, YAML, CSV, JSONL, Properties, TOML).
Proposed formats
- MessagePack — compact binary, widely used
- UBJSON — Universal Binary JSON
Proposed API
import { parse, stringify, OutputFormat } from 'jsoncraft';
// would extend OutputFormat with 'msgpack' | 'ubjson'
Since these are binary, the parse/stringify signatures may need to accept/return Uint8Array for binary formats while keeping string for text formats.
Acceptance
- Round-trip JSON → MessagePack → JSON preserves values
- Implementation stays dependency-free (the specs are small enough)
Interested? Drop a comment!
Goal
Add binary serialization formats alongside the text formats already supported (JSON, YAML, CSV, JSONL, Properties, TOML).
Proposed formats
Proposed API
Since these are binary, the
parse/stringifysignatures may need to accept/returnUint8Arrayfor binary formats while keepingstringfor text formats.Acceptance
Interested? Drop a comment!