title: How to modify values inside JSON object in Java
body: <p>I have a JSON Object which looks like this.</p>
  <pre><code>{
     &quot;result&quot;:{
        &quot;issue_date&quot;:&quot;20-02-2011&quot;,
        &quot;father/husband&quot;:&quot;Chopra&quot;,
        &quot;name&quot;:&quot;Variyar&quot;,
        
   &quot;img&quot;:&quot;/9j/4AAQSkZJRgABAQAABAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKS&quot;,
        &quot;blood_group&quot;:&quot;&quot;,
        &quot;dob&quot;:&quot;11-03-1981&quot;,
        &quot;validity&quot;:{
           &quot;non-transport&quot;:&quot;24-03-2010 to 23-02-2030&quot;,
           &quot;transport&quot;:&quot;&quot;
        },
        &quot;cov_details&quot;:[
           {
              &quot;issue_date&quot;:&quot;UNIT OFFICE,TRICHY&quot;,
              &quot;cov&quot;:&quot;NCWG&quot;
           }
        ],
        &quot;dl_number&quot;:&quot;TN0290000784&quot;,
        &quot;address&quot;:&quot;PERIYA COLONY  KO PAVAZHANGUDI  VIRUDHACHALAM TK&quot;
     },
     &quot;request_id&quot;:&quot;a2642ae9-2f10-4e9a-9f7e-c3ee1a9a2dbe&quot;,
     &quot;status-code&quot;:&quot;101&quot;
  }
  </code></pre>
  <p>I want to edit the values inside of &quot;img&quot; which is inside &quot;result&quot; using java.</p>
  <pre><code>obj.remove(&quot;img&quot;);
  obj.put(&quot;img&quot;,&quot;N/A&quot;);
  </code></pre>
  <p>But it did not work. My expected output is that the Img tag should be like this</p>
  <pre><code> &quot;img&quot;:&quot;N/A&quot;,     
  </code></pre>
  <p>Any suggestion on how to achieve this?</p>