Skip to content

Large unsigned integers (>long.MaxValue) are parsed as floats. #95

@xlsupport

Description

@xlsupport

My json contains ulong values, but the parser incorrectly converts values that exceed the maxvalue of a long to floats.

I'm assuming it happens here [https://github.com/molsonkiko/JsonToolsNppPlugin/blob/d45a7e5ac491af6dbf4f2bc2f381797cff5984b1/JsonToolsNppPlugin/JSONTools/JsonParser.cs#L1257]

[ {
    "State": 8598537377453965584,
    "Moved": 17592454483968
  },
  {
    "State": 9601714194450817024,
    "Moved": 76842668642009376
  }
]

becomes
[
    {
        "State": 8598537377453965584,
        "Moved": 17592454483968
    },
    {
        "State": 9.60171419445082E+18,
        "Moved": 76842668642009376
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestprobably fixed?the issue/feature appears to be fixed/implemented, but there still may be issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions