Skip to content

-0 parsed as string!!! #318

Closed
Closed
@metwp

Description

@metwp

If I parse the following JSON string, the value of key "a" will be interpreted as an integer. So far, so good.
But unfortunately the value of key "b" will be interpreted as a string and NOT as a number (integer).

{ "a": 0, "b": -0 }

Is there a possibility to avoid this behaviour, or do I'm something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions