title: JSON Patching in Swift
body: <p>I have a web socket that is pushing me JSON every second. The first response from the server is a full dictionary:</p>
  
  <pre><code>{
      "key1" : "value1",
      "key2" : {
          "key4" : "value3"
      },
      "key3" : "value2"
  }
  </code></pre>
  
  <p>Every second the server pushes me a new JSON dictionary, but only including the values that should be changed:</p>
  
  <pre><code>{
      "key1" : "olderButStillNew",
      "key2" : {
          "key4" : "newValue"
      }
  }
  </code></pre>
  
  <p>I want this to result in the following dictionary:</p>
  
  <pre><code>{
      "key1" : "olderButStillNew",
      "key2" : {
          "key4" : "newValue"
      },
      "key3" : "value2"
  }
  </code></pre>
  
  <p>I'm currently using SwiftyJSON to parse and handle the JSON. Is there a good way I should be accomplishing this "patch"?</p>
  
  <p>Any ideas or help would be great!</p>