JSON Toolkit

JSON Toolkit – JSONPath, JSON Schema Validator & JSON to TypeScript/Go

JSON Toolkit combines several JSON tools in one place. Query documents with JSONPath filters, validate JSON against a JSON Schema (Draft 2020-12 or Draft-07) with detailed error paths, infer a schema from sample data, and generate TypeScript interfaces, Go structs, or Rust serde structs from an example payload.

How to use

  1. Paste your JSON document.
  2. Pick a mode: JSONPath query, schema validation, schema inference, or code generation.
  3. Enter a JSONPath expression or a schema, or choose the target language.
  4. Copy the result.

FAQ

How do I generate TypeScript types from JSON?

Paste a sample JSON response, choose TypeScript, and copy the generated interfaces. Nested objects become separate interfaces.

Which JSON Schema versions are supported?

Draft 2020-12 and Draft-07, with error messages that show the exact path of each failure.

Is my JSON uploaded?

No. The tool runs entirely in your browser. Your input is processed locally and is never uploaded to a server.

Query JSON with JSONPath, validate against JSON Schema, and generate TypeScript, Go, Rust, or JSON Schema types from sample data.

JSON Input Valid

Loading editor...

{
  "store": {
    "name": "Corner Books",
    "open": true,
    "book": [
      { "id": 1, "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 },
      { "id": 2, "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99, "isbn": "0-553-21311-3" },
      { "id": 3, "category": "fiction", "author": "Herman Melville", "title": "Moby Dick", "price": 8.99, "isbn": "0-553-21311-4" }
    ],
    "bicycle": { "color": "red", "price": 19.95 }
  },
  "owner": { "email": "owner@example.com", "since": "2019-04-01" }
}
Result · 2 matches

Loading editor...

[
  "Sayings of the Century",
  "Moby Dick"
]