中文
JSON to Go / TypeScript
Stop hand-writing structs for third-party APIs. Paste the JSON and get code you can commit.
Notes
- Numbers become int64 or float64 depending on decimals/exponent; tick 'all float64' to unify.
- Initialisms follow Go convention: id/url/api become ID/URL/API (UserID, not UserId).
- Empty arrays degrade to []interface{}; null fields are annotated as unknown type.