You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! I am going to mark this as a bug. The issue is that Go's encoding/json unmarshals JSON numbers into floats by default. We can do better by asking it to UseNumber instead.
Just want to note: it's not a design goal to guarantee no byte change when getting a document through tomljson | jsontoml.
*The Issue
It seems that jsontoml converts integer to float values.
How To Reproduce
$
tomljson example.toml | jsontoml > example2.toml
$
diff -Naur example.toml example2.toml
Expected behavior
example.toml example2.toml should be identical, the diff should be empty.
Versions
The text was updated successfully, but these errors were encountered: