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

"Pretty-print current JSON file" function problems #40

Closed mingditts closed 1 year ago

mingditts commented 1 year ago

Hi, if you try to pretty-print function on the current text

{ "Value": 22.0 }

you'll get this result:

{ "Value": 220.0 }

It changes the value of the decimal "Value" property. It's correct? Thank you!

molsonkiko commented 1 year ago

Install the latest version, or at least install a version greater than 4.0

I pinnned this issue (Floating point values are multiplied by some power of 10 (solution: install v4+), #23) in the hopes that you would notice that.

mingditts commented 1 year ago

Thanks, i checked the updates available for you plugin using the notepad++ plugin manager but no updates found after version 3. The problem was the old version of notepad++ itself. After the update of notepad++ now i see the version 4.14 and the bug was solved. Sorry and thanks!

molsonkiko commented 1 year ago

No worries, @mingditts, and glad it's working. Sorry for the rather rude tone, since obviously it's my fault that your original version wasn't working correctly.

By the way, you might consider upgrading to 5.3.0 in the releases section of this repo. This version of JsonTools is considerably better than 4.14 in many ways.