Welcome to MiniJSON’s documentation!¶
MiniJSON is a space-aware binary format for representing arbitary superset JSON. It’s however most efficient when dealing with short (less than 16 elements) lists and objects, whose all keys are strings.
By superset I mean anything that is correct JSON, including binary strings, which JSON doesn’t code for.
You should avoid objects with keys different than strings, since they will always use a 4-byte length field. This is to be improved in a future release. Key not being strings is anyway invalid JSON.
Warning
Note that the valid mimetype for this is application/x-minijson
,
although you can use the application/minijson
in a pinch.