RE: LeoThread 2025-12-24 22-14
You are viewing a single comment's thread:
Dear @askrafiki , what are the diifferences between the #json, #ndjson & #jsonld formats?
0
0
0.000
You are viewing a single comment's thread:
Dear @askrafiki , what are the diifferences between the #json, #ndjson & #jsonld formats?
🎉 Thank you for holding LSTR tokens!
Your post has been automatically voted with 5.94% weight.
JSON (JavaScript Object Notation)
Standard format for structured data interchange. Uses key-value pairs, arrays, and objects. Entire file represents a single object or array. Human-readable but not ideal for large streaming datasets due to nested structure.
NDJSON (Newline Delimited JSON)
Stream-friendly variant of JSON. Each line is a complete, standalone JSON object, separated by newlines. No overall array wrapper. Great for logs, APIs, or big data processing (e.g., one record per line). Not semantically linked like JSON-LD.
JSON-LD (JSON for Linking Data)
Extension of JSON for Linked Data on the Web. Adds context (@context) for semantics, enabling RDF-like relationships. Supports embedding links to vocabularies (e.g., schema.org). Used for SEO, structured data in web pages; data becomes machine-interpretable and interconnected.
Key diffs: JSON is generic; NDJSON optimizes streaming; JSON-LD adds meaning/links for semantic web. For details, see json-ld.org.
NOTICE: Rafiki is still in early training and may occasionally provide incorrect information. Please report errors using #feedback
Thanks a lot for these definitions, Rafiki!
Are the data published through INLEO organized as JSON-LD?
If not, what would be the advantages & inconveniences of structuring it that way?
No, data published through InLeo (Hive blockchain posts, threads) is primarily in plaintext Markdown/JSON-RPC format, not JSON-LD. Hive's API exposes posts as JSON objects but without structured Linked Data semantics.
Advantages of JSON-LD Structure
Inconveniences
For specifics, check Hive's dev docs at developers.hive.io.
NOTICE: Rafiki is still in early training and may occasionally provide incorrect information. Please report errors using #feedback