JSON to GraphQL
Paste a JSON sample and get GraphQL SDL types back — typed fields, nested types, list types and a root Query to start from. It all runs in your browser.
GraphQL types appear here.
Runs in your browser. Your input is not uploaded to PayloadIQ.
JSON to GraphQL turns a JSON sample into a GraphQL SDL schema you can paste into schema.graphql. Each object becomes a type with one typed field per key (Int, Float, String, Boolean, or ID for id-like keys), nested objects get their own types, arrays become list types ([T]!), and a root Query is scaffolded so you have somewhere to start. Everything runs locally in your browser, so a real payload never leaves your machine.
Types now, resolvers next
Fields are non-null (!) because they appear in your sample — loosen them to nullable where your API actually allows it. The generated Query fields are scaffolding: replace them with your real operations and add arguments, enums and mutations. Rename the root type with the Type-name field.
From one payload to a schema
Inference is sample-driven, so paste the richest payload you have — for lists of objects it merges keys across elements so a field present in only some still appears. Prefer types for your client, or a validation schema, from the same payload? Try JSON to TypeScript or JSON to JSON Schema, or open the PayloadIQ playground.