quicktype

Generate types and parsing code for TypeScript and other languages from sample JSON.

  • Web Utility
Visit quicktype official site

What it is

quicktype is an open-source code generator. Paste sample JSON into its web app and choose a language to get data types and parsing code. The official project also supports inputs such as JSON Schema and GraphQL.

Why it is selected

Writing types field by field from an API response is easy to get wrong. quicktype gives you generated code to review and adjust against the actual data.

Who it suits

Developers turning API responses into language-specific data models.

Useful for

  • Generating a TypeScript interface from sample JSON
  • Starting a data model in another language listed by the official project

Usage note

In this review, JSON containing a string, a boolean, and an array of numbers produced TypeScript fields typed as string, boolean, and number[]. Other input formats, languages, and the runtime behavior of the generated code were not tested. Check inferred types against real data.

Transform

Convert code, data formats, and type definitions in the browser.

  • conversion
  • developer-tool
  • code-generation

JSON Crack

Turn JSON, YAML, CSV, or XML into an interactive tree graph.

  • json
  • visualization
  • developer-tool

IT Tools

Use encoding, format conversion, networking, and development utilities in one place.

  • conversion
  • developer-tool
  • open-source