I am very new to JSON, have been pestered to get this done.I have to get the value of "extract" as in the given diagram. This diagram is a object diagram of a json. The value 21721040 can be random, thus I do not know the name of the object whose one of the members I seek.
Thus I cannot do something like
query.pages.21721040.extract

So how can I get the value of "extract"?
Out of curiosity should the object whose name is a numeral create an error when I try to access one of its members? Or they just work? For example in this case one of the object's name is "-1".

If I try to access the value "url" after parsing in JS like this:
query.pages.-1.imageinfo.0.url
Will it throw an error?
query.pages["-1"].imageinfo[0].url