logoalt Hacker News

feelameetoday at 10:20 AM1 replyview on HN

He misspelled subset/superset, but the idea with streaming is right.

Given: - YAML support streaming - any JSON is valid YAML

Conclusion - any JSON is streaming


Replies

fodkodrasztoday at 11:00 AM

Nope?

The "streamed JSON" needs --- line sparators, which is not a JSON spec feature, thus that data stream is valid YAML from that point, bot not a valid JSON stream.

NDJSON is a different beast.