title: merge two json arrays with push on item value
body: <p>I have the following json array:</p>
  
  <p>array 1:</p>
  
  <pre><code>fruits1 = [{"fruit":"banana","amount":"2","color":"yellow"},{"fruit":"apple","amount":"5","color":"red"},{"fruit":"kiwi","amount":"1","color":"green"}]
  </code></pre>
  
  <p>array 2:</p>
  
  <pre><code>fruits2 = [{"fruit":"banana","sold":"1","stock":"3"},{"fruit":"apple","sold":"3","stock":"5"},{"fruit":"kiwi","sold":"2","stock":"3"}]
  </code></pre>
  
  <p>I would like to get just one array which has the results merged according to the fruits value like this:</p>
  
  <pre><code>fruits = [{"fruit":"banana","amount":"2","color":"yellow","sold":"1","stock":"3"},{"fruit":"apple","amount":"5","color":"red","sold":"3","stock":"5"},{"fruit":"kiwi","amount":"1","color":"green","sold":"2","stock":"3"}]
  </code></pre>
  
  <p>I need to do something like </p>
  
  <pre><code>    foreach item.fruit where fruit = fruit from initial array 
      fruits.push item
  </code></pre>
  
  <p>Any idea?</p>