molsonkiko / JsonToolsNppPlugin

A Notepad++ plugin providing tools for JSON like linting, querying, a tree view, and CSV conversion.
Apache License 2.0
70 stars 9 forks source link

Floating point values are multiplied by some power of 10 (solution: install v4+) #23

Closed jstaerk closed 1 year ago

jstaerk commented 1 year ago

When I pretty print {"bookmark": { },"globalConfig": { "__modelVersion": 2.201 }} the output is

{
"bookmark":
    {
    },
"globalConfig":
    {
    "__modelVersion": 2201.0
    }
}

i.e. the _modelVersion is multiplied by 1000?

jstaerk commented 1 year ago

I don't know if that's related but I work in a german locale , we use . as thousands delimiter and , for decimal separation.

molsonkiko commented 1 year ago

Hi @jstaerk , this is a sufficiently common issue that I'm going to pin this and not close it. The original issue was #17.

Just install any version above v4.0 or whatever the current latest release is. That should fix the bug.

jstaerk commented 1 year ago

seems to work thanks