4 ms·
json-ld files (json line delimited, means one json object per line) are used extensively in data processing. A lot of processing of these json-ld files uses no
by willvarfar 5y ago
json-ld files (json line delimited, means one json object per line) are used extensively in data processing.
A lot of processing of these json-ld files uses normal builtins instead of special libraries eg in python doing a for line in or a stream map and the standard json lib etc.
From a glance at this spec, it seems that where an object ends is no longer something that the normal file processing most languages possess work. Which is a problem.
I’d be surprised if a extended-json ever got traction because everyone already has code that uses the lowest common denominator json parser and line splitting built into whatever language and libraries they are using and those they interchange with already use.
Having said that, the pain points I wrestle with are lack of date types and how to safely pass large integers and currencies etc. Things not addressed in the json5 spec?
- xdfgh1112 5y agoI call it JSONL but yeah it's super useful. The ability to split and join using standard Unix tools, or just pipe through GNU parallel for automatic speedup without any boilerplate code
- Symbiote 5y agoJSON-LD is JSON Linked Data. What you describe seems to be called line-delimited JSON, LDJSON, NDJSON or JSONL. https://en.wikipedia.org/wiki/JSON_streaming https://en.wikipedia.org/wiki/JSON_streaming