XML to JSON Schema Generator

Generate a starter model from JSON or XML locally.

Inferring a JSON Schema from XML

The XML sample is mapped to JSON (attributes and child elements as properties, repeated elements as arrays) and a JSON Schema 2020-12 document is inferred: integer, number, boolean and string types, nested objects, array item schemas and a required list. <user id="7"><name>Ada</name></user> gives "title": "User" with id as integer and name as string, both required.