pquerna / ffjson

faster JSON serialization for Go
Apache License 2.0
2.96k stars 235 forks source link

Fix encode and decode when slice has null structs #232

Closed nkovacs closed 6 years ago

nkovacs commented 6 years ago

If a struct contains a slice or map of structs, this code can appear inside a for loop, and returning from the entire function/going back to mainparse generates invalid json/is unable to correctly parse valid json. Fixes #231