title: Replacing all instances of a value in JSON using pure JavaScript
body: <p>Is it possible using JavaScript only to replace all instances of the version with another number and then return the JSON structure intact?</p>
  
  <pre><code>{
      "savedSearches": [{
          "id": 123,
          "version": 10,
          "name": "Project Manager",
          "query": "www.foo.com"
      }, {
          "id": 123,
          "version": 10,
          "name": "Project Manager",
          "query": "www.foo.com"
      }],
      "deletedSavedSearches": []
  }
  </code></pre>
  
  <p>I need this to be very quick and lightweight as I'll be using it within JMeter.</p>