3 ms·
Or made it closer to current schemas for JSON like JSON Schema[1] TJSON type tagging "t:" looks eerily like XML namespace prefixes. Personally not a big fan o
by drawkbox 10y ago
Or made it closer to current schemas for JSON like JSON Schema[1]
TJSON type tagging "t:" looks eerily like XML namespace prefixes.
Personally not a big fan of typed JSON and hate XML/SOAP/bloat but also not a fan of mashed/concatenated values which is reminiscent of CSV days, most protocol buffers are reminiscent of binary data exchange days, those were even more fun /s.
You can apply constraints on an instance by adding validation keywords to the schema. For instance, the "type" keyword can be used to restrict an instance to an object, array, string, number, boolean, or null:
{ "type": "string" }
[1] http://json-schema.org/ http://json-schema.org/