-
Trình Thực Thi
Trình biên dịch Python Trình biên dịch C++ Trình biên dịch C Trình biên dịch Matplotlib Trình thông dịch Node.js Trình thông dịch PHP Trình biên dịch C# / .NET Trình biên dịch Rust Ruby Interpreter Trình biên dịch Java Trình biên dịch Go Trình biên dịch Kotlin Trình biên dịch Swift Trình biên dịch TypeScript
-
Học lập trình
Trung tâm học Python Ví dụ chạy được, NumPy, pandas và nhiều nội dung khác Trung tâm học C và C++ Con trỏ, bộ nhớ, STL và C++ hiện đại Trung tâm học C#C# cơ bản, OOP, LINQ, async và bài tập .NET Thuật toán Python Tìm kiếm, sắp xếp, đệ quy và trình mô phỏng O(n) Thuật toán C và C++ So sánh cách cài đặt bằng C và C++
- Thử thách
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.
Luyện Python với thử thách lập trình
Giải các bài tập thực tế ngay trên trình soạn thảo này: chạy kiểm thử mẫu, nộp bài và nhận đánh giá code từ AI.