Hacker News new | ask | show | jobs
by krapp 1723 days ago
All text based data formats are meant to be human readable and human writable, and humans read and write JSON all the time.
1 comments

You wouldn't say that mammals write C all the time, would you? Front end development would be so much better if you could just spew json at people in a table.
>You wouldn't say that mammals write C all the time, would you?

Yes. Mammals do write C all the time, because humans are mammals. And C is meant to be human readable and writable.

> Front end development would be so much better if you could just spew json at people in a table.

That's literally what a JSON API is, and there are tons of them. And for each of them, a human had to be able to read and comprehend JSON responses and write JSON requests in code. There's a reason JSON is pretty-printed in the debug consoles of browsers.

To say nothing of all of the package definitions or framework configs that are written (by hand) in JSON.

The fact that most JSON is machine generated at present has nothing to do with its original design intent. Most Javascript, CSS and HTML are machine generated nowadays as well, but they were meant to be written by a person using a text editor.