On 2026-11-15, Johann 'Myrkraverk' Oskarsson <joha…@myrkraverk.invalid> wrote:
> JSON can be just as complicated. There's no rule that an "id": in a sub
> object is the same as the "id": in the parent object. The one thing XML
> has above JSON is the ability to -- in theory -- unambiguously embed one
> XML document in another.
Ugh. That headache hasn't hit me yet; the sources I parse are all
JSON. I do JSON data collection from various sources; I wrote a JSON
parser and added it to my private library. Its arguments include a
table whose elements comprise a parent and sub ID pair and a pointer
to where to store the corresponding data value (plus a maximum length).
One of our data sources uses the same ID in a sub-object as another
source uses as a parent object. As long as data from the two aren't
mixed things work for me. So far, anyway.
--
/~\ Charlie Gibbs | In this world there are
\ / <cgib…@kltpzyxm.invalid> | two kinds of people:
X I'm really at ac.dekanfrus | 1. Those who can extrapolate
/ \ if you read it the right way. | from incomplete data.