title: How can I add to an existing object using JSONata?
body: <p>I need to be able to add an element to an arbitrarily complex object using JSONata.</p>
  
  <p>I don't know all the elements in the object in advance.</p>
  
  <p>For example, lets say I want to add</p>
  
  <pre><code>"newElement": { "a": 1, "b": 2 }
  </code></pre>
  
  <p>To an object that looks like:</p>
  
  <pre><code>{ "xx": "An", "yy": "Example", "zz": 1 }
  </code></pre>
  
  <p>But it might have any number or mix of other elements.</p>
  
  <p>I can replace the whole object but I can't work out how to add to it.</p>