Closed arussellsaw closed 8 years ago
You caught me: I was lazy and only evaluated the first element in an array to determine its structure.
I'll look into this soon, thanks for the report!
Much smaller example:
[
{
"Occupation":"carpenter"
},
{
"Name":"bill",
"Occupation":"woodcutter"
}
]
gives:
type Autogenerated []struct {
Occupation string `json:"Occupation"`
}
Hi @mholt thanks for this repo and idea, I like a lot. I just created a PR who solves this issue
The input string:
returns the Go Struct :
the "img" object is missing from the assets struct. i appreciate that this JSON is kinda ugly, but still a bug!