String json = "{\"setting\":{\"profit_ report\":{\"profit_ report_ tb\":{\"__ meta\":{\"text\":\"abc\"}}}}}"; Want to append a property check:true , how to write the set method
Activity
gkorland commentedon Apr 25, 2021
@goodluckwgw I'm not sure I'm getting the issue, can you please extend?
oshadmi commentedon May 24, 2021
@goodluckwgw
You can append a key in a specific path using
json.set
, for example:For
You can add
check:true
And get the key
check
as a sibling of keytext