jsonxx icon indicating copy to clipboard operation
jsonxx copied to clipboard

jsonxx:Number floating point number or integer?

Open gcamp opened this issue 10 years ago • 1 comments

Right now the jsonxx::Number encompass both the floating point and integer values. This causes problems when I want to put that number as string. Specifically, I would want to avoid the trailing zeros.

I'm open on doing a pull request, but this seems like a API decision that has been made a while ago. Any reason for that?

gcamp avatar May 12 '14 21:05 gcamp

Sorry for responding after 7 years! This is due to JSON itself only has a number type to include both integers and floating point numbers.

hjiang avatar Feb 21 '21 06:02 hjiang