Open 4k1k0 opened 1 year ago
I found a use case where the Unmarshal function does not return the same value as the standard encoding/json package.
Unmarshal
encoding/json
https://go.dev/play/p/PZQ9WZlZ52v
If you use {{}} as a input you should expect a nil returned, but JSON Iterator returns a map instead.
{{}}
nil
I found a use case where the
Unmarshal
function does not return the same value as the standardencoding/json
package.https://go.dev/play/p/PZQ9WZlZ52v
If you use
{{}}
as a input you should expect anil
returned, but JSON Iterator returns a map instead.