1

How can I remove "window3" from below json object str

var json1 = {"panel0": {"window3":{"collapsed":false},"window0":{"collapsed":false}},"panel1": {"window2":{"collapsed":false},"window1":{"collapsed":false}},"floating":{},"orientation": "horizontal"};

Thank you.

4

1 回答 1

1

In JSONiq it would be:

delete json $json1("panel0")("window3")

(see http://www.zorba-xquery.com/html/demo#KkcoASbF2krqvFgXSwf22RLQJgo= )

于 2012-08-24T09:26:38.410 回答