NewKit / Data & JSON / JSON → Types
ES EN

JSON → Types

Generate Go, Rust, Python or TS types from a JSON. · Processed in your browser.

Language
TypeScriptGoRustPython
JSON
TypeScript

What is JSON → Types?

Paste a sample JSON and NewKit automatically generates the equivalent data types in the language you choose: Go (structs with tags), Rust (structs with serde), Python (dataclasses) or TypeScript (interfaces). It detects primitive types, arrays and nested structures, generating a named type for each inner object.

It saves you the tedious, error-prone work of hand-writing models from an API response. It is perfect when you consume a new endpoint and need to type the response quickly, or when migrating between languages. Since everything happens in the browser, you can paste real data without worrying about privacy.

Frequently asked questions

Is it free?

Yes, all NewKit tools are completely free.

Is my data sent to a server?

No. Processing happens 100% in your browser, so it is safe even for sensitive data.