title: Saving file after removing json node
body: <p>i was trying to remove json node from json file. For parsing ande getting not i used json slurper </p>
  
  <pre><code>File f=new File(fileLocation);
   def result = new JsonSlurper().parseText(f.text)
   Map jsonResult = (Map) result; 
   Map Bookmarkbar = (Map) jsonResult.get("roots").get("bookmark_bar");
  List Children=(List) Bookmarkbar.get("children");
   println("no of elements "+Children.get(i).size());
   if("Google".equals(Children.get(i).get("name"))
  {
   Children.remove(i);
   println(Children.get(i));
  }
  </code></pre>
  
  <p>here it is removing ith node of children.But when i checked in the json file  i could see change is not happend ? println(Children.get(i)); is displaying next node after the removed one .and count also is decremented .so  how will i save the file after removing the child node ?</p>