JSON to Go Struct
Convert JSON to Go struct definitions
JSON Input
Paste your JSON data here
Go Struct Output
Generated Go struct definitions
How to Use
1. Paste your JSON data in the input area
2. Click "Generate Struct" to create Go struct definitions
3. Copy the struct and use it in your Go project
Features:
- Automatically infers Go types from JSON values
- Handles nested objects and arrays
- Generates JSON tags for each field
- Capitalizes field names for export
- Supports int, float64, string, bool, and nested structs