Remix.run Logo
andix 2 hours ago

JSON, just use JSON. Or XML, if you don't like JSON.

toolslive 2 hours ago | parent [-]

JSON 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 2 hours ago | parent [-]

What's the difference to CSV?

  number,73786976294838206464
toolslive 2 hours ago | parent [-]

For 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.