The converter parses the JSON sample and walks each value to infer Go field types. Strings become string, integers become int, decimal numbers become float64, booleans become bool, objects become structs, and arrays become slices.
The output is based on the sample you paste, so mixed arrays, nullable fields, and missing fields are inferred from visible examples only. Review interface{} fallbacks, pointer fields, and omitempty tags before using the struct in production code.
Common questions and answers about this topic.
JSON strings map to Go string, whole numbers to int, decimal numbers to float64, booleans to bool, arrays to slices, and nested objects to nested structs. Null-only fields fall back to interface{}, while nullable typed fields may become pointers with omitempty tags.
Nested JSON objects are rendered as anonymous nested struct blocks inside the generated type. The converter does not split them into separately named child types, so you can decide later whether to extract reusable structs by hand.
Yes, the converter adds json struct tags to fields using the original JSON key names. For example, a JSON field named user_name generates a Go field with a json tag for user_name so encoding/json can keep the wire name.
No, the JSON to Go struct conversion is performed entirely in your browser using JavaScript. Your JSON data stays on your device and is never uploaded to any server.