2 ms·
What is the advantage of this being JSON? Couldn't the language be more "terse, consistent, secure, and flexible" if it wasn't JSON, with the possible advantage
by remram 5y ago
What is the advantage of this being JSON? Couldn't the language be more "terse, consistent, secure, and flexible" if it wasn't JSON, with the possible advantage of parsing faster and being friendlier to write?
The website lists the ability to easily send it "between front-end and back-end code, and even store it in a database", is there an advantage to it being JSON for any of these goals?
- pjerem 5y agoWe blindly use JSON for everything because one day, someone discovered that JavaScript embedded a JSON parser called eval(). Yup, that’s where our civilization is.
- skybrian 5y agoProgrammers are already familiar with the surface syntax, including gotchas like only having doubles. Also, the logic can be embedded in an already-existing JSON file. This is useful if you occasionally need to look at the file, but usually you don't, so it's not worth putting any more effort into nice tooling.