[{"data":1,"prerenderedAt":112},["ShallowReactive",2],{"tool-content-en-json-schema-generator":3},{"id":4,"title":5,"body":6,"description":102,"extension":103,"locale":104,"meta":105,"navigation":106,"path":107,"seo":108,"stem":109,"toolId":110,"__hash__":111},"tools\u002Ftools\u002Fen\u002Fjson-schema-generator.md","JSON Schema Generator",{"type":7,"value":8,"toc":93},"minimark",[9,14,18,23,31,51,55,84],[10,11,13],"h2",{"id":12},"json-schema-generation","JSON Schema generation",[15,16,17],"p",{},"Generate JSON Schema (Draft 2020-12) from sample JSON data, or generate sample JSON from a JSON Schema definition. All processing happens locally in your browser.",[19,20,22],"h3",{"id":21},"json-to-schema","JSON to Schema",[15,24,25,26,30],{},"Paste a JSON object or array to automatically generate a JSON Schema. The generator infers types for strings, numbers (integer vs float), booleans, null, nested objects, and arrays. Mixed-type arrays produce ",[27,28,29],"code",{},"oneOf"," schemas.",[15,32,33,34,38,39,42,43,46,47,50],{},"Toggle ",[35,36,37],"strong",{},"Include required"," to add or omit the ",[27,40,41],{},"required"," array in the output. Toggle ",[35,44,45],{},"Include examples"," to add the original values as ",[27,48,49],{},"examples"," fields.",[19,52,54],{"id":53},"schema-to-json","Schema to JSON",[15,56,57,58,61,62,61,65,61,67,70,71,61,74,76,77,79,80,83],{},"Paste a JSON Schema to generate sample JSON data. The generator resolves ",[27,59,60],{},"type",", ",[27,63,64],{},"properties",[27,66,41],{},[27,68,69],{},"enum"," (takes the first value), ",[27,72,73],{},"default",[27,75,49],{}," (takes the first), and ",[27,78,29],{},"\u002F",[27,81,82],{},"anyOf"," (takes the first branch).",[15,85,86,87,89,90,92],{},"Nested schemas and arrays are handled recursively. Optional properties (not in ",[27,88,41],{},") are omitted when a ",[27,91,41],{}," array is present.",{"title":94,"searchDepth":95,"depth":95,"links":96},"",2,[97],{"id":12,"depth":95,"text":13,"children":98},[99,101],{"id":21,"depth":100,"text":22},3,{"id":53,"depth":100,"text":54},"Generate JSON Schema from sample data or sample JSON from a schema, with type inference, required fields, and example values.","md","en",{},true,"\u002Ftools\u002Fen\u002Fjson-schema-generator",{"title":5,"description":102},"tools\u002Fen\u002Fjson-schema-generator","json-schema-generator","tXqa5zVyutg6zoUQvH61mE6fxye6HRUkeCbdA3BIGvw",1792391418715]