3 ms·
JSON, just use JSON. Or XML, if you don't like JSON.
by andix 8mo ago
JSON, just use JSON. Or XML, if you don't like JSON.
- toolslive 8mo agoJSON brings its own set of problems. for example, look at the python generated JSON below. > >>> json.dumps({ "X" : 1 << 66 }) > '{"X": 73786976294838206464}' What's the parsing result in javascript ? What's the parsing result in Java ?
- andix 8mo agoWhat's the difference to CSV? number,73786976294838206464
- toolslive 8mo agoFor CSV, I don't know how this comes out. It depends on the library/programming language. It might be 73786976294838210000 or it might throw an exception, or whatever. I'm just saying JSON will not solve your problems neither.
- andix 8mo agoSo it always depends on the implementation. If you need something unambiguously specified, then XML with XSD is still a valid option. All number types are specified exactly, and you can use extensions for custom number types.