go icon indicating copy to clipboard operation
go copied to clipboard

json: unsupported type: general.Map

Open c625473164 opened this issue 6 years ago • 2 comments

thrifter.ToJSON got this error sometimes, any solution?

c625473164 avatar Jun 19 '19 16:06 c625473164

I got this error too ... Is there any solution ?

DMLayMan avatar May 11 '21 08:05 DMLayMan

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

DMLayMan avatar May 11 '21 08:05 DMLayMan