jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
62 lines (61 loc) • 1.2 kB
JSON
{
"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"
}
}
}
}
}
}
}