Re:Amazon open-sources Ion – a binary and text interchangabl...
by anentropic on Friday April 22, 2016 @07:36AM
(#11548366)
what is the point of sending integer "amount" as a string?
[ Parent
| on HN ]
Re:Amazon open-sources Ion – a binary and text interchangabl...
by Matt3o12_ on Friday April 22, 2016 @08:59AM
(#11548733)
So that it can be an integer with an arbitrary length, or a float/double without precision problems. You can also let our own integer classes do the parsing (which might even be able tonhandle complex types).
After all, everything in JSON is a string since it doesn't have a binary format and it shouldn't cause a huge overhead to do the parsing yourself (that might depend on the library, though).