4 ms·
Isn't this just a reinvention of Canonical JSON [1]? There were efforts [2] to standardize it, although it seems this fizzled out. [1] http://wiki.laptop.org/g
by bgamari 10y ago
Isn't this just a reinvention of Canonical JSON [1]? There were efforts [2] to standardize it, although it seems this fizzled out.
[1] http://wiki.laptop.org/go/Canonical_JSON http://wiki.laptop.org/go/Canonical_JSON
[2] https://datatracker.ietf.org/doc/draft-staykov-hu-json-canonical-form/ https://datatracker.ietf.org/doc/draft-staykov-hu-json-canon...
- seagreen 10y agoThanks for brining Canonical JSON up. There's an issue to investigate it here: https://github.com/seagreen/Son/issues/7 https://github.com/seagreen/Son/issues/7 It doesn't appear that Canonical JSON does anything about redundant escape sequences in JSON. I'm still looking into it to be sure. This is a big part of the motivation behind the Son spec, and represents about half the EBNF: https://github.com/seagreen/Son/blob/master/son.ebnf#L19 https://github.com/seagreen/Son/blob/master/son.ebnf#L19 For anyone else who knows of more JSON subsets, if you report them here: https://housejeffries.com/page/7 https://housejeffries.com/page/7 it would be really appreciated. I definitely don't want to do duplicate work.