jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
51 lines (50 loc) • 1.16 kB
JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [ "$let", "in" ],
"properties": {
"$let": {
"type": "object",
"additionalProperties": false,
"required": [ "x" ],
"properties": {
"x": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0,
"multipleOf": 10
}
}
}
},
"in": {
"type": "object",
"additionalProperties": false,
"required": [ "$reverse" ],
"properties": {
"$reverse": {
"type": "object",
"additionalProperties": false,
"required": [ "$sort", "by(x)" ],
"properties": {
"$sort": {
"type": "object",
"additionalProperties": false,
"required": [ "$eval" ],
"properties": {
"$eval": {
"type": "string"
}
}
},
"by(x)": {
"type": "string"
}
}
}
}
}
}
}