Input JSON to convert it into Go structs with json tags!
input
→
result
Convert JSON to Go Structs!
Input JSON to convert it into Go structs with json tags!
Use Cases
- Types for API responses
- Paste a JSON response from an external API to get structs ready for unmarshaling. Nested objects become separate structs.
- Missing or null fields
- Fields that appear only in some items or are null become pointers with omitempty, so the data unmarshals as is.
- Config file structs
- Get structs for reading JSON config files with field names that follow Go conventions (UserID, HomeURL).