title: JSON merge and override array
body: <p>I want to merge override two json objects. The difficulty here is that the merge is in an array. The only way to know where to merge is with the "name" property.</p>
  
  <ol>
  <li>Is there an easy solution to do what i want with the current structure?</li>
  <li>Would you consider changing the JSON structure, like having the name as a key to ease the merging?</li>
  </ol>
  
  <p>My main object is the following:</p>
  
  <pre><code>   {
      "servers": {
          "services": [
              {
                  "name": "api"
                  "prop1": "XXX",
                  "prop2": "XXX"
              },
              {
                  "name": "web"
                  "prop1": "XXX",
                  "prop2": "XXX"
              }
          ]
      }
  }
  </code></pre>
  
  <p>"web" service needs to be overrriden with:</p>
  
  <pre><code>{
      "servers": {
          "services": [
              {
                  "name": "web"
                  "prop1": "overriden value"
              }
          ]
      }
  }
  </code></pre>
  
  <p>The result object should be:</p>
  
  <pre><code>{
      "servers": {
          "services": [
              {
                  "name": "api"
                  "prop1": "XXX",
                  "prop2": "XXX"
              },
              {
                  "name": "web"
                  "prop1": "overriden value",
                  "prop2": "XXX"
              }
          ]
      }
  }
  </code></pre>