G33kDude / cJson.ahk

AutoHotkey JSON library using embedded C for high performance
https://www.autohotkey.com/boards/viewtopic.php?f=6&p=408453
MIT License
80 stars 8 forks source link

`JSON.Dump` converts float numbers to string #6

Closed htadashi closed 1 year ago

htadashi commented 1 year ago

Thank you for your fantastic work. Your project has been an immense help to me during my recent AHK project, and I'm grateful for the time and effort you put into it.

However, I wanted to bring a small issue to your attention. I noticed that the method JSON.Dump automatically converts float numbers to a string. While this works in most cases, some servers expect the parameter to be a float instead of a string. This can cause issues for users who are trying to send data to these servers.

G33kDude commented 1 year ago

Please refer to the type conversions table in the Readme. It explains how float conversions work, and how to make them do what you've asked here. If you have any further questions, feel free to re-open the issue.

htadashi commented 1 year ago

Thanks @G33kDude! This solves my issue.