title: How to add new element to the json. Even if after a element deleted from middle of the JSON file. I am using VOLLEY Android
body: <p>If an element is deleted from the middle of the Json file, the next insert element will be added immediately after it is deleted, otherwise is there any way to add a new element at the end of Json?</p>
  <p>Example</p>
  <p>sample.json</p>
  <pre><code>sample[
                  {&quot;name&quot; : &quot;name1&quot;,
                   &quot;place&quot; : &quot;place1},
  
                   {&quot;name&quot; : &quot;name2&quot;,
                   &quot;place&quot; : &quot;place2},
  
                   {&quot;name&quot; : &quot;name3&quot;,
                   &quot;place&quot; : &quot;place3}
                 ]
  </code></pre>
  <p>Normally when we add a new element that is added at last postion of json like below</p>
  <p>there is i am added a new element 'name4'</p>
  <pre><code>sample [
               {&quot;name&quot; : &quot;name1&quot;,
                &quot;place&quot; : &quot;place1},
  
               {&quot;name&quot; : &quot;name2&quot;,
               &quot;place&quot; : &quot;place2},
  
               {&quot;name&quot; : &quot;name3&quot;,
               &quot;place&quot; : &quot;place3},
  
               {&quot;name&quot; : &quot;name4&quot;,  &lt;-- New
               &quot;place&quot; : &quot;place4}   Element
                 
           ]
  </code></pre>
  <p>IF WE DELETE A ELEMNT FROM MIDDLE (I MEAN NOT FIRST AND LAST) OF THE JSON FILE.  FOR EXAMPLE I DELETE 'name3' FROM ABOVE JSON THEN JSON IS JUST LIKE BELOW</p>
  <pre><code>sample[
                  {&quot;name&quot; : &quot;name1&quot;,
                   &quot;place&quot; : &quot;place1},
  
                   {&quot;name&quot; : &quot;name2&quot;,
                   &quot;place&quot; : &quot;place2},
  
  
                           &lt;---- DELETED
                                 'name3'
  
  
                   {&quot;name&quot; : &quot;name4&quot;,      
                     &quot;place&quot; : &quot;place4}           
                 ]
  </code></pre>
  <p>THE PROBLEM IS NOW. THEN WE ADD A NEW ELEMENT TO THIS JSON. THAT NEW ELEMENT IS ADDED JUST AFTER LAST DELETED ELEMENT. FOR EXAMPLE I ADD ' name5' ELEMENT TO THE JSON. THAT THE JSON FILE IS JUST LIKE BELOW</p>
  <pre><code>sample[
             {&quot;name&quot; : &quot;name1&quot;,
              &quot;place&quot; : &quot;place1},
  
             {&quot;name&quot; : &quot;name2&quot;,
              &quot;place&quot; : &quot;place2},
  
             {&quot;name&quot; : &quot;name5&quot;,   &lt;--- New
              &quot;place&quot; : &quot;place5},    ADDED
  
             {&quot;name&quot; : &quot;name4&quot;,       
              &quot;place&quot; : &quot;place4}           
          ]
  </code></pre>
  <p>All I want ,even if delete the element from anywhere in the json file, but the newly added element should join at the end of the json file.</p>
  <p>I NEED THE LAST CODE AS LIKE BELOW</p>
  <pre><code>sample[
          {&quot;name&quot; : &quot;name1&quot;,
           &quot;place&quot; : &quot;place1},
  
          {&quot;name&quot; : &quot;name2&quot;,
           &quot;place&quot; : &quot;place2},
  
          {&quot;name&quot; : &quot;name4&quot;,       
           &quot;place&quot; : &quot;place4}        
  
          {&quot;name&quot; : &quot;name5&quot;,   &lt;--- I NEED
           &quot;place&quot; : &quot;place5},      NEW 
                                    ELEMENT 
                                   ADDITION   IS HERE ,EVEN IF AFTER DELETING AN ELEMENT FROM MIDDLE OF THE JSON.
  
            ]
  </code></pre>
  <p>ALERT</p>
  <p>I NEEDED VOLLEY CODE FOR THIS OPERATION.
  I AM DEVELOPING AN ANDROID APP NOW</p>