go
go copied to clipboard
json: unsupported type: general.Map
thrifter.ToJSON got this error sometimes, any solution?
I got this error too ... Is there any solution ?
thrifter.ToJSON got this error sometimes, any solution? This will help.
Use github.com/json-iterator/go package instead of encode.json. It can encode map[interface{}]interface{} to JSON.
https://github.com/json-iterator/go