jsonbinpack
Version:
A space-efficient schema-driven binary JSON serialization format based on JSON Schema
41 lines (40 loc) • 723 B
JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"coordinates"
],
"properties": {
"type": {
"enum": [
"Point",
"MultiPoint",
"LineString",
"MultiLineString",
"Polygon",
"MultiPolygon",
"GeometryCollection",
"Feature",
"FeatureCollection"
]
},
"coordinates": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"maxItems": 2,
"minItems": 2,
"items": {
"type": "number"
}
}
}
}
}
}
}