mholt / json-to-go

Translates JSON into a Go type in your browser instantly (original)
https://mholt.github.io/json-to-go/
MIT License
4.51k stars 475 forks source link

fixes issue #80 #82

Closed zen37 closed 4 years ago

zen37 commented 4 years ago

Fixes issue https://github.com/mholt/json-to-go/issues/80

mholt commented 4 years ago

Will reopen if there's an actual solution, but Javascript overflows.

zen37 commented 4 years ago

very, very interesting, yes 123342342342342342342342.5 returns bool, but with a console.log or anything else like i = 2

else console.log('x'); return "float64";

it returns float64, including for this number 123342342342342342342342000000.5, not that this would be a solution.