Skip to content

[roadmap] MessagePack and UBJSON binary encoders #3

Description

@Cryptoteep

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions