Summarising the other answers, here are the JSON schema generators proposed so far:
Online:
- https://www.liquid-technologies.com/online-json-to-schema-converter (1 input)
- http://www.jsonschema.net (1 input)
- https://easy-json-schema.github.io (1 input)
- https://json.ophir.dev/ (1 input, nice UI)
Python:
- https://github.com/gonvaled/jskemator (1 input but allows iteration)
- https://github.com/perenecabuto/json_schema_generator (1 input)
- https://github.com/rnd0101/json_schema_inferencer (1 input I think)
- https://pypi.python.org/pypi/genson/ (multiple inputs)
- https://pypi.python.org/pypi/skinfer (multiple inputs)
NodeJS:
- https://github.com/Nijikokun/generate-schema (multiple inputs (pass object array))
- https://github.com/easy-json-schema/easy-json-schema (1 input)
- https://github.com/aspecto-io/genson-js (multiple inputs)
Ruby:
- https://github.com/maxlinc/json-schema-generator (1 input)
PyPI
pypi.org › project › genson
genson · PyPI
GenSON is a powerful, user-friendly JSON Schema generator built in Python.
» pip install genson
Top answer 1 of 12
188
Summarising the other answers, here are the JSON schema generators proposed so far:
Online:
- https://www.liquid-technologies.com/online-json-to-schema-converter (1 input)
- http://www.jsonschema.net (1 input)
- https://easy-json-schema.github.io (1 input)
- https://json.ophir.dev/ (1 input, nice UI)
Python:
- https://github.com/gonvaled/jskemator (1 input but allows iteration)
- https://github.com/perenecabuto/json_schema_generator (1 input)
- https://github.com/rnd0101/json_schema_inferencer (1 input I think)
- https://pypi.python.org/pypi/genson/ (multiple inputs)
- https://pypi.python.org/pypi/skinfer (multiple inputs)
NodeJS:
- https://github.com/Nijikokun/generate-schema (multiple inputs (pass object array))
- https://github.com/easy-json-schema/easy-json-schema (1 input)
- https://github.com/aspecto-io/genson-js (multiple inputs)
Ruby:
- https://github.com/maxlinc/json-schema-generator (1 input)
2 of 12
101
You might be looking for this:
http://www.jsonschema.net
It is an online tool that can automatically generate JSON schema from JSON string. And you can edit the schema easily.
Videos
17:13
Intro to JSON Schema Validation in Python & JavaScript (AJV & ...
01:55
Mastering the Art of Creating Python Classes from JSON Schema: ...
13:45
JSON Schema Validation in Python: Bring Structure Into JSON - YouTube
07:19
Generate Model schemas and JSON serialization in 20 languages with ...
24:40
Pydantic - Nested Models, JSON Schema and Auto-Generating Models ...
01:31
Python - JSON file to Schema - YouTube
GitHub
github.com › python-jsonschema › jsonschema
GitHub - python-jsonschema/jsonschema: An implementation of the JSON Schema specification for Python · GitHub
>>> from jsonschema import validate >>> # A sample schema, like what we'd get from json.load() >>> schema = { ... "type" : "object", ... "properties" : { ... "price" : {"type" : "number"}, ... "name" : {"type" : "string"}, ... }, ... } >>> # If no exception is raised by validate(), the instance is valid. >>> validate(instance={"name" : "Eggs", "price" : 34.99}, schema=schema) >>> validate( ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema, ...
Starred by 4.9K users
Forked by 609 users
Languages Python 99.8% | TypeScript 0.2%
PyPI
pypi.org › project › json-schema-codegen
json-schema-codegen · PyPI
import jsonschemacodegen.cpp as ...rate(sampleSchema, 'Example', 'example') A Python3 class is generated for each schema node; the class encapsulating the data described by the schema....
» pip install json-schema-codegen
GitHub
github.com › openapi-json-schema-tools › openapi-json-schema-generator
GitHub - openapi-json-schema-tools/openapi-json-schema-generator: OpenAPI JSON Schema Generator allows auto-generation of API client libraries with a focus on JSON schema given an OpenAPI document · GitHub
To get a list of general options available, please run java -jar target/openapi-json-schema-generator-cli.jar help generate · To get a list of python specified options (which can be passed to the generator with a config file via the -c option), please run java -jar target/openapi-json-schema-generator-cli.jar config-help -g python
Starred by 172 users
Forked by 14 users
Languages Java 48.8% | Handlebars 48.6% | Python 1.5% | Shell 1.0% | Ruby 0.1% | Dockerfile 0.0%
GitHub
github.com › altair-viz › schemapi
GitHub - altair-viz/schemapi: Auto-generate Python APIs from JSON schema specifications
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. schemapi is a package that lets you auto-generate simple Python object-based APIs given a valid JSON schema specification.
Starred by 79 users
Forked by 12 users
Languages Python 82.4% | Jupyter Notebook 17.4% | Makefile 0.2% | Python 82.4% | Jupyter Notebook 17.4% | Makefile 0.2%
GitHub
github.com › perenecabuto › json_schema_generator
GitHub - perenecabuto/json_schema_generator: A simple json schema generator from any json source
Starred by 261 users
Forked by 71 users
Languages Python 100.0% | Python 100.0%
Unstructured
docs.unstructured.io › api-reference › partition › generate-schema
Generate a JSON schema for a file - Unstructured
You want to generate a schema for a JSON file that Unstructured produces, so that you can validate, test, and document related JSON files across your systems. Use a Python package such as genson to generate schemas for your JSON files.
GitHub
github.com › wolverdude › GenSON
GitHub - wolverdude/GenSON: GenSON is a powerful, user-friendly JSON Schema generator built in Python.
Starred by 704 users
Forked by 74 users
Languages Python 100.0% | Python 100.0%
JSON Schema
json-schema.org › tools
JSON Schema - Tools
Toolings below are written in different languages, and support part, or all, of at least one recent version of the specification · Listing does not signify a recommendation or endorsement of any kind
jsonschema
python-jsonschema.readthedocs.io
jsonschema 4.26.0 documentation
PyPI version Supported Python versions Build status ReadTheDocs status pre-commit.ci status Zenodo DOI jsonschema is an implementation of the JSON Schema specification for Python. It can also be us...
JSON Schema
json-schema.org › learn › getting-started-step-by-step
Creating your first schema
This tutorial guides you through the process of creating a JSON Schema.