I have a JSON Object which looks like this.
{
"result":{
"issue_date":"20-02-2011",
"father/husband":"Chopra",
"name":"Variyar",
"img":"/9j/4AAQSkZJRgABAQAABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKS",
"blood_group":"",
"dob":"11-03-1981",
"validity":{
"non-transport":"24-03-2010 to 23-02-2030",
"transport":""
},
"cov_details":[
{
"issue_date":"UNIT OFFICE,TRICHY",
"cov":"NCWG"
}
],
"dl_number":"TN0290000784",
"address":"PERIYA COLONY KO PAVAZHANGUDI VIRUDHACHALAM TK"
},
"request_id":"a2642ae9-2f10-4e9a-9f7e-c3ee1a9a2dbe",
"status-code":"101"
}
I want to edit the values inside of "img" which is inside "result" using java.
obj.remove("img");
obj.put("img","N/A");
But it did not work. My expected output is that the Img tag should be like this
"img":"N/A",
Any suggestion on how to achieve this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…