TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

IO vs. JSON – Differences between the text-based data serialization formats

2 pointsby aamironlineover 5 years ago

1 comment

onion2kover 5 years ago
Without an explicit end delimiter I can&#x27;t tell if I have all the records in the data. Looking for an EOF kind of works locally but not in HTTP requests. Firing data around the web is not reliable. JSON has the <i>massive</i> advantage that if you don&#x27;t have all the data, including that closing curly bracket, it won&#x27;t parse correctly. This format doesn&#x27;t have that. Consequently I <i>can&#x27;t</i> use it.<p>If you want JSON-but-with-&lt;missing feature&gt; there&#x27;s always <a href="https:&#x2F;&#x2F;json5.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;json5.org&#x2F;</a>.