revise deeply nested JSON array in DOM
问题 I have an HTML page that contains a stringified JSON object. The object has this structure: { "x":{ "key1":[], "key2":{}, "keyN":{}, "myKey":{ "randomID238492":{ "items":[ { "value":"zzzz" }, { "value":"aaaa" }, { ...} ] } } } } I want to replace this object with one in which the "items" array has been sorted. Here is what I will and won't know about the object: "myKey" and "items" will always be the relevant object keys "myKey" will contain only one random ID, and the "items" key will always