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)
Liquid Technologies
liquid-technologies.com โบ online-json-to-schema-converter
Free Online JSON to JSON Schema Converter
Uses the sample JSON document to infer a JSON schema
QuickType
quicktype.io โบ schema
JSON to JSON Schema
Instantly generate JSON Schema models from JSON.
validation - Tool to generate JSON schema from JSON data - Stack Overflow
We have this json schema draft. I would like to get a sample of my JSON data and generate a skeleton for the JSON schema, that I can rework manually, adding things like description, required, etc, ... More on stackoverflow.com
Did anybody use the json schema for code generation?
Hi, After spending hours trying to convince various tools/projects to generate source code from the openehr json schemas, I finally gave up. The schemas are truly extensive, a huge amount of work must have gone into these, so thanks a lot to Code24 for the initial effort and all the other ... More on discourse.openehr.org
JSON Schema generator
Iโve been using https://github.com/deepmap/oapi-codegen for this exact purpose as I found it to be the most robust. You need to convert the schemas to OpenAPI specs first though (IIRC there are tools for that) and make sure to use the correct parameters with oapi-codegen. Itโs not fantastic, but it does work very well for our use case. More on reddit.com
JSON schema generator
I just searched google and these 2 popped up: JSON Schema Tool Free Online JSON to JSON Schema Converter Both seem to work fine More on reddit.com
Videos
03:26
Validate Response Data With JSON Schema - YouTube
10:31
How to Generate JSON Schemas in .NET 9 - YouTube
Generate Parse Json Schema Dynamically In Power Automate - YouTube
Laughing Professor | Welcome to The Professorโs free ...
14:21
What is a JSON Schema? Generate, Modify, and Understand ...
Transform
transform.tools โบ json-to-json-schema
JSON to JSON Schema
An online playground to convert JSON to JSON Schema
npm
npmjs.com โบ package โบ prisma-json-schema-generator
prisma-json-schema-generator - npm
June 22, 2024 - A generator, which takes a Prisma 2 schema.prisma and generates a JSON Schema in version 7 of the specification (https://json-schema.org/).
ยป npm install prisma-json-schema-generator
Published ย Jun 22, 2024
Version ย 5.1.5
Author ย Valentin Palkovic
Objgen
objgen.com โบ json
JSON Generator
You need to enable JavaScript to run this app
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.
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
Newtonsoft
newtonsoft.com โบ jsonschema โบ help โบ html โบ GenerateSchema.htm
Generate JSON Schema
JSchemaGenerator generator = new JSchemaGenerator(); JSchema schema = generator.Generate(typeof(Person)); // { // "type": "object", // "properties": { // "Name": { // "type": [ "string", "null" ] // }, // "Age": { "type": "integer" } // }, // "required": [ "Name", "Age" ] // }
openEHR
discourse.openehr.org โบ implementation
Did anybody use the json schema for code generation? - Implementation - openEHR
October 23, 2020 - Hi, After spending hours trying to convince various tools/projects to generate source code from the openehr json schemas, I finally gave up. The schemas are truly extensive, a huge amount of work must have gone into these, so thanks a lot to Code24 for the initial effort and all the other contributors who brought the schemas to their current state.
JSON Schema
json-schema.org
JSON Schema
Discover JSON Schema tooling to help your organization leverage the benefits of JSON Schema. Because JSON Schema is much more than a Specification, it is a vibrant ecosystem of Validators, Generators, Linters, and other JSON Schema Utilities made by this amazing Community.Explore
GitHub
github.com โบ vega โบ ts-json-schema-generator
GitHub - vega/ts-json-schema-generator: Generate JSON schema from your Typescript sources ยท GitHub
-p, --path <path> Source file path -t, --type <name> Type name -i, --id <name> $id for generated schema -f, --tsconfig <path> Custom tsconfig.json path -e, --expose <expose> Type exposing (choices: "all", "none", "export", default: "export") -j, --jsDoc <extended> Read JsDoc annotations (choices: "none", "basic", "extended", default: "extended") --markdown-description Generate `markdownDescription` in addition to `description`. --full-description Include the full raw JSDoc comment as `fullDescription` in the schema.
Starred by 1.7K users
Forked by 230 users
Languages ย TypeScript 99.4% | JavaScript 0.6%
Stoplight
stoplight.io โบ json-guide
JSON Schema & Validator | JSON Generator & Editor Guide | Stoplight
Let's look at what keywords can make up a JSON Schema file. JSON Schema files often start with the following metadata keywords:
Json2CSharp
json2csharp.com
Convert JSON to C# Classes Online - Json2CSharp Toolkit
JSON: { 'test' : 'test'} C#: [JsonPropertyName("test")] public string test { get; set; } Class Settings ยท Generate Immutable Classes ยท Creates readonly classes that are instantiated using the class constructor. JSON: { 'test' : 'test'} C#: public Root( string test) { this.test = test; } public string test { get; } Use Record Types ยท
Js
json-schema-faker.js.org
JSON Schema Faker โ Generate Realistic Test Data
Control generation with command-line flags. # Deterministic output with seed jsf schema.json --seed 42 # Include all optional properties jsf schema.json --all-optionals # Override array/string constraints jsf schema.json --min-items 5 --max-length 20 # Use schema defaults and examples jsf schema.json --use-defaults --use-examples # Read from stdin cat schema.json | jsf - # Combine options jsf schema.json -o output.json -c 5 --seed 42
json-everything
docs.json-everything.net โบ schema โบ schemagen โบ schema-generation
Generating JSON Schema from .Net Types | json-everything
9 hours ago - JsonSchema.Net.Generation is an extension package to JsonSchema.Net that provides JSON Schema generation from .Net types.
GitHub
github.com โบ invopop โบ jsonschema
GitHub - invopop/jsonschema: Generate JSON Schemas from Go types ยท GitHub
Generate JSON Schemas from Go types. Contribute to invopop/jsonschema development by creating an account on GitHub.
Starred by 911 users
Forked by 127 users
Languages ย Go
JSON Schema
json-schema.org โบ learn โบ getting-started-step-by-step
Creating your first schema
The most basic schema is a blank JSON object, which constrains nothing, allows anything, and describes nothing: ... By adding validation keywords to the schema, you can apply constraints to an instance.