JSON-Viewer icon indicating copy to clipboard operation
JSON-Viewer copied to clipboard

"Sort by key" causes the value type to change

Open iyangchengye opened this issue 4 months ago • 2 comments

Hi,

When I use the "Sort by key" function, after sorting, it converts the number type to a string type. See "age" in the example below.

Before sorting { "name": "Ycy", "age": 27, "is_student": false }

After sorting { "age": "27", "is_student": false, "name": "Ycy" }

My plugin version is 2.1.1.0 and npp version is 8.8.5 Looking forward to your reply, thx.

iyangchengye avatar Sep 08 '25 10:09 iyangchengye