4 ms·
It's definitely safer, but it's a living hell having to define a class for each possible json structure in Java with gson.
by Igglyboo 12y ago
It's definitely safer, but it's a living hell having to define a class for each possible json structure in Java with gson.
- anonfunction 12y agoNot sure where Java came into the conversation but I found a service[1] which I find really helpful for generating Golang structs from JSON. There is also a CLI tool[2] that does the same. [1]http://mholt.github.io/json-to-go/ http://mholt.github.io/json-to-go/ [2]https://github.com/ChimeraCoder/gojson https://github.com/ChimeraCoder/gojson
- eikenberry 12y agoAnother one. https://github.com/str1ngs/jflect https://github.com/str1ngs/jflect