JSON to Types help

Turn a JSON example into typed interfaces or structs.

Steps

  1. Paste a representative JSON value.
  2. Choose TypeScript or Go, and set the root type name.
  3. Copy the output.

How it infers

Notes

Everything runs in your browser. Nothing you enter or drop is uploaded.

Back to JSON to Types