quicktype
quicktype copied to clipboard
Quicktype cannot distinguish float 0.0 from int 0
The members of iodepth_level
in the sample json code are floats, but quicktype recognize them as ints (IodepthLevel
in the output python code)
I'm using the web app at https://app.quicktype.io/ , maybe it's caused by the type system in JavaScript?
Code is pasted here
I ran into this issue as well (with any number ending with .0). This would be fine for me except Python wants to serialize .0 to a float yet the code quick type generates enforces that it is an integer.
+1 experienced the same issue. Was able to work around by replacing all .0s with 0.001s.