Cognitect Transit

Created: 2022-06-06T17:09:38-05:00

Return to the Index

This card pertains to a resource available on the internet.

Not really a data format. More of a meta-standard on top of inferior data formats (JSON, MsgPack.)

Cache

Values can be stored in a cache table and referenced by ID. Cached values are referenced by ID and substituted during decoding.

ID is references with ^xx where xx is the number encoded via one or two symbols in ASCII range 48-91.

Tag Encoding

Tags are a tilde followed by one character given special meaning.

The ~~ tag means its not tagged the data just starts with the tilde.

Strings: ~ char value

Array: ["~#tag", value]

Object: {"~#tag": value}