Slide 38
Slide 38 text
38
“JSON Structure is
a data structure
definition language
that enforces strict
typing, modularity,
and determinism.”
json-structure.org
{
"$schema": "https://json-structure.org/meta/extended/v0/#"
,
"$id": "https://example.com/schemas/product"
,
"$uses": ["JSONStructureAlternateNames"
, "JSONStructureUnits"
],
"type": "object",
"name": "Product",
"properties": {
"id": {
"type": "uuid",
"description": "Unique identifier for the product"
},
"name": {
"type": "string",
"maxLength": 100,
"altnames": {
"json": "product_name"
,
"lang:en": "Product Name"
,
"lang:de": "Produktname"
}
},
"price": {
"type": "decimal",
"precision": 10,
"scale": 2,
"currency": "USD"
},
...
"required": ["id", "name", "price", "created" ]
}