views:

18

answers:

0

I have a JSON containing imbricated arrays, maps and primitive values.

Is there a way to replace a whole map by knowing the key that is set with ?

e.g. in

["a":"aaa", "map1":{"int1":1, "map2":{"int2":2}, "data":null}]

I would like to replace the string representing map2 and get

["a":"aaa", "map1":{"int1":1, "data":null}]