stretchr / objx

Go package for dealing with maps, slices, JSON and other data.
MIT License
691 stars 75 forks source link

Fix for map[interface{}]interface{} to JSON conversion #87

Closed geseq closed 5 years ago

geseq commented 5 years ago

If map[interface{}]interface{} end up within the Map, JSON() and MustJSON() fail even if the data is valid. Added methods to cleanup the data before converting to JSON.

geseq commented 5 years ago

@hanzei Do you know what's causing the build to fail?

hanzei commented 5 years ago

Your code isn't properly formatted. You can locally check this via task lint.

geseq commented 5 years ago

Right. Fixed.