Hacker News new | ask | show | jobs
by phkahler 856 days ago
>> The real rub is getting programs to speak JSON natively.

You mean getting programs to ingest arbitrary data structures? OK, JSON is not arbitrary - it is limited to a certain overall format. But it can be used to serialize arbitrarily complex data structures.

1 comments

Meaning most Unix command line tools are line-oriented meaning input and output are expected to have a series of text records, each on its own line. Stray too far from this lingua franca and you'll need to get creative to get piped IO to work.

JSON doesn't care so much about lines and doesn't necessarily represent an array of records, so it doesn't fit into this box.