Unmarshal JSON With Multiple Roots In Go
1 min readOct 5, 2018
If you need to handle JSON strings or streams that have multiple JSON roots the Go library does come with this functionality, but it not easily accessible. It takes a bit of fiddling with reflect.
Here is my drop-in version:
Originally published at http://elliot.land on October 5, 2018.