4 ms·
JSON has a well defined schema system that works across languages. http://json-schema.org/ http://json-schema.org/ Python comes with the jsonschema module out
by user5994461 9y ago
JSON has a well defined schema system that works across languages. http://json-schema.org/ http://json-schema.org/
Python comes with the jsonschema module out of the box.
- StavrosK 9y agoThat's rather verbose, though. I prefer the much more functional "schema" library: https://github.com/keleshev/schema https://github.com/keleshev/schema
- ris 9y agoThing is, none of these are language agnostic. jsonschema is the only one that makes an attempt at that. It's a slight pity that the python jsonschema package doesn't support some of the more powerful recent features though.
- calvins 9y agoWhat do you mean by 'out of the box'? jsonschema needs to be installed. It's not in the stdlib.