jsonutils
jsonutils copied to clipboard
Converter for JSON data to a Go struct or a Java class for GSON
Could you to use a git tag for a release? Thanks!
Fails to complete for: https://github.com/brather1ng/RePoE/blob/master/data/stat_translations/monster.json ``` panic: runtime error: index out of range goroutine 1 [running]: github.com/bashtian/jsonutils.(*Model).parse(0xc000050740, 0x743de0, 0xc000062880, 0xc000068530, 0xe) C:/Users/home/go/src/github.com/bashtian/jsonutils/jsonutils.go:219 +0x977 github.com/bashtian/jsonutils.(*Model).parseMap(0xc000050740, 0xc00007cff0) C:/Users/home/go/src/github.com/bashtian/jsonutils/jsonutils.go:180 +0xd8 github.com/bashtian/jsonutils.(*Model).parse.func1() C:/Users/home/go/src/github.com/bashtian/jsonutils/jsonutils.go:222 +0x3a...
This may be working as intended but it did catch me by surprise; feeding in a JSON array (of either strings or ints) does not produce a useful result. ```...
I ran `jsonutils` on what the New York Times top stories API, and it spit out what looked like the correct format. But I'm getting `panic: json: cannot unmarshal string...