I have to admit that I once used python repr() as a way to pass json data. It worked. I think.
JSON5 Data Interchange Format
31–40 of 157 posts
Re: JSON5 Data Interchange Format
#32json-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 posse…
What you describe seems to be called line-delimited JSON, LDJSON, NDJSON or JSONL.
Re: JSON5 Data Interchange Format
#33Re: JSON5 Data Interchange Format
#34Re: JSON5 Data Interchange Format
#35> "Strings may be single quoted." What's the point? I cringe every time a project uses both double quote and single quote, a mix of semicolon and no semicolon and a mix of tabs and space, .... Which one to pick isn't relevant as soon as the code base is consistent
Re: JSON5 Data Interchange Format
#36Earlier quoted context omitted.
Because: ‘I am “really” angry’ Is much nicer than: “I am \”really\” angry”
Json is not meant to be human readable or writeable.
Re: JSON5 Data Interchange Format
#37I have to admit that I once used python repr() as a way to pass json data. It worked. I think.
Re: JSON5 Data Interchange Format
#38> "Strings may be single quoted." What's the point? I cringe every time a project uses both double quote and single quote, a mix of semicolon and no semicolon and a mix of tabs and space, .... Which one to pick isn't relevant as soon as the code base is consistent
Re: JSON5 Data Interchange Format
#39Ah, it's based on ECMAScript 5.1. I guess we can wait for a JSON6, then.
Re: JSON5 Data Interchange Format
#40{ justDate: @2020-02-08 }
{ dateAndTime: @2007-03-01T13:00:00Z }
{ justTime: @@13:00:00 }