- Ejecutores
-
Aprender
Centro de aprendizaje de Python Ejemplos ejecutables, NumPy, pandas y más Centro de aprendizaje de C y C++ Punteros, memoria, STL y C++ moderno Centro de aprendizaje de C#Fundamentos, POO, LINQ, async y ejercicios de .NET Algoritmos en Python Búsqueda, ordenación, recursión y visualizadores O(n) Algoritmos en C y C++ Compara implementaciones en C y C++
- Retos
Converters
JSON to TypeScript Converter
Paste a JSON sample and get TypeScript interfaces for every nested object.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the JSON to TypeScript
- Paste a JSON object or array.
- Choose the root type name, interface or type, and export or readonly.
- Copy the TypeScript or download a .ts file.
Frequently asked questions
How are optional fields detected?
When an array contains objects, keys missing from some items are marked optional with ?.
How are null values typed?
Fields that are null in some samples get a | null union.
Should I use interface or type?
Both work for object shapes. Interfaces can be extended and merged; types are more flexible for unions.
Practica Python con desafíos de código
Resuelve problemas prácticos en este editor: ejecuta las pruebas de ejemplo, envía tu solución y recibe una revisión de código por IA.