gabs
gabs copied to clipboard
Empty array becomes null
Hey,
I'm wrapping a map[string]{interface} that has an empty array in it ([]). The resulting Container has a null value rather than a [].
I think the issue might be related to this: https://www.danott.co/posts/json-marshalling-empty-slices-to-empty-arrays-in-go/
Is there any chance of this being supported? Thanks.
Hey @cschloer, not sure how we'd catch this within gabs without a lot of reflection but I can take a look when I have some free time.