On 2023-05-26 1:19 PM, Walter Underwood wrote:
I wouldn’t call it semantic sugar, more like a different compact format. The compact format also avoids duplicate keys, which are legal in JSON but hard to create in some systems.
It's not they're hard to create, it's that you can't create a data structure (incl. a JavaScript Object: the "JSO" in JSON) with them -- and then marshall it into JSON.
The only way to create a Solr-style "JSON" string is to mash it by hand. String mashing is considered a bad idea in general and especially bad when proper facilities are available in your language.
OT $.02 Dima