Skip to content

Latest commit

 

History

History

README.md

@atproto/lex-json

JSON encoding and decoding for the AT Protocol data model, including the $link (CID) and $bytes representations used by XRPC.

Provides lexParse / lexStringify to go between JSON strings and data-model values, and jsonToLex / lexToJson to convert already-parsed JSON objects. For the CBOR codec used by repository storage, see @atproto/lex-cbor.

This is a building block of @atproto/lex, which re-exports it — prefer depending on that package.

License

This project is dual-licensed under MIT and Apache 2.0 terms:

Downstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.