by culi · 2y ago · 0 comments
The biggest thing on my wishlist for a system like this is a standardized syntax for choosing an item in a list by an identifying (set?) of key-value pairs. E.g. for
{
"name": "Clark St Garden",
"plants": [
{ "latin": "Phytelephas aequatorialis", year: 2009 },
{ "latin": "Ceiba speciosa", year: 2009 },
{ "latin": "Dillenia indica", year: 2021 }
]
}
I'd like to be able to specify that I want to update Ceiba speciosa regardless of its index. This gets especially important if we're adding items or trying to analyze diffs of previous versions of a json itemTurns out there is https://www.ietf.org/archive/id/draft-goessner-dispatch-json...
[1] https://www.rfc-editor.org/info/rfc6902
Biggest issue with JSON patch is its inability to handle even the simplest concurrent writes.