title: Loop through a JSON file, add element then save to new file
body: <p>I have a JSON file consisting of elements like so : </p>
  
  <pre><code>var data=[{
      "Name": "Jeff",
      "Age": 35
  },
  {
      "Name": "cliff",
      "Age": 56
  }]
  </code></pre>
  
  <p>I want to add another field, say 'Country'. So it looks something like this : </p>
  
  <pre><code>var data=[{
      "Name": "Jeff",
      "Age": 35,
      "Country" : "USA"
  },
  {
      "Name": "cliff",
      "Age": 56,
      "Country" : "UK"
  }]
  </code></pre>
  
  <p>I have hundreds of elements so it would take too long to do it by hand. How would I loop through the JSON adding another element as shown above and then print this to a text file which saves to another file which I can use.</p>