Skip to content

Bug: incompatibility with standard lib map instead of nil #684

Open
@4k1k0

Description

@4k1k0

I found a use case where the Unmarshal function does not return the same value as the standard encoding/json package.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions