{"city":"Sydney", "street":"Victoria", "building number":25, "building name":"James Bond Building"}
{ "type":"object",
"properties": { "city": { "type":"string" },
"street": { "type":"string" },
"building": { "type" :"number",
"minimum": 1}
}
}
{ }
{ "type":"object",
"properties": { "Hello world message": { "type":"string" } }
}
{ "Hello world message":"Hello world !" }
{ "Hello world message":"Hello world !", "Greeting":"How are you ?" }
{}
{ "type":"object",
"properties": { "Hello world message": { "type":"string",
"minLength": 1,
"maxLength": 13 }
}
}
{ "Hello world message":"Hello world !!!" }
{ "Hello world message":"Hello world !" }
{ "Hello world message":"Hello world !", "Greeting":"How are you ?" }
{ "type":"string"}
{ "type": ["string","number"] }
"city":{ "type":"string" }
"city":{"type":"string",
"minLength": 10,
"maxLength": 20 }
"number":{"type":"string",
"pattern":"[1-9][0-9]" }
"birthday":{"type":"string",
"format":"date" }
"int":{ "type":"integer" }
"num":{ "type":"number" }
"mod5zero":{ "type":"integer",
"multipleOf": 5 }
"mof2":{ "type":"number",
"multipleOf": 0.2 }
"intrange":{ "type":"integer",
"minimum": 0,
"exclusiveMaximum": 5}
"bool":{ "type":"boolean" }
"nothing":{ "type":"null" }
{ "type":"object" }
{ "city":"Sydney", "street":"Victoria", "building":25 }
{ "name":"School of Astronomy",
"courses":[ {"code":"SOA101",
"title":"Astronomy for Kids",
"credits":3},
{"code":"SOA201",
"title":"Black Holes",
"credits":6}
]
}
{ }
{ "type":"object",
"properties": { "city": { "type":"string" },
"street": { "type":"string" },
"building": { "type":"number", "minimum":1 }
}
}
{ "city":"Dapto","street":"Station","building":7}
{ "city":"Dapto","street":"Station"}
{ "city":"Dapto","street":"Station","building":7,"type":"skyscraper"}
{ }
{ "type":"object",
"properties": { "city": { "type":"string" },
"street": { "type":"string" },
"building": { "type":"number",
"minimum":1 }
},
"additionalProperties":false
}
{ "city":"Dapto","street":"Station","building":7}
{ "city":"Dapto","street":"Station"}
{ }
{ "city":"Dapto","street":"Station","building":7,"type":"skyscraper"}
{ "type":"object",
"properties": { "city": { "type":"string" },
"street": { "type":"string" },
"building": { "type":"number","minimum":1 }
},
"requiredProperties": ["city","street"]
}
{ "city":"Dapto","street":"Station","type":"skyscraper"}
{ "city":"Dapto","street":"Station","building":7}
{ "city":"Dapto","building":7,"type":"skyscraper"}
{ "type":"object",
"properties": { "city": { "type":"string" },
"street": { "type":"string" },
"building": { "type":"number","minimum":1 }
},
"minProperties": 2,
"maxProperties": 3
}
{ "city":"Dapto","street":"Station","building":7}
{ "city":"Dapto","street":"Station"}
{ "street":"Station","building":7}
{ "city":"Dapto","street":"Station","building":7,"type":"skyscraper"}
{ "type":"object",
"properties": { "city": { "type":"string" },
"street": { "type":"string" },
"building": { "type":"number",
"minimum":1 }
},
"dependencies": { "street": ["building"]} }
{ "city":"Dapto","street":"Station","building":7}
{ "street":"Station","building":7}
{ "city":"Dapto","building":7}
{ "type":"object",
"patternProperties": { "^(city|CITY)": { "type":"string" },
"^(street|STREET)": { "type":"string" },
"^(building|BUILDING)": { "type":"number",
"minimum":1 }
},
"additionalProperties":false }
}
{ "city":"Dapto","STREET":"Station","building":7}
{ "street":"Station","BUILDING":7}
{ "CITY":"Dapto","BUILDING":7}
{ }
{ "type":"array" }
[1, 2, 3, 4, 5, 6, 7]
["ab", "cde", "efgh", "ijklm"]
[ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]
[ ]
{ "type":"array",
"items": { "type":"string" }
}
["ab", "cde", "ab", "ijklm"]
["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
[ ]
{ "type":"array",
"items": [ { "type":"string" },
{ "type":"number",
"minimum":1} ],
"additionalItems":false
}
["Station St.", 25]
["Victoria St."]
[ ]
{ "type":"array",
"items": { "type":"string" },
"uniqueItems":true
}
["ab", "cde", "efgh", "ijklm"]
[ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ]
[ ]
{ "type":"array",
"items": { "type":"string" },
"uniqueItems":true,
"minItems":3,
"maxItems":5
}
["ab", "cde", "efgh", "ijklm"]
[ "0", "1", "2", "3", "4" ]
{ "anyOf": [ {"type":"string",
"maxLength":5},
{"type":"boolean"} ]
}
{ "anyOf": [ {"type":"string",
"maxLength":5},
{"type":"string",
"minLength":3} ]
}
{ "allOf": [ {"type":"string",
"maxLength":5},
{"type":"string",
"minLength":3} ]
}
{ "oneOf": [ {"type":"string",
"maxLength":5},
{"type":"string",
"minLength":3} ]
}