Merge JSON objects inside a array : <p>I have a JSON Array as below</p>

<pre><code>[
{"Name" : "Arrow",
"Year" : "2001"
},

{"Name" : "Arrow",
"Type" : "Action-Drama"
},
{ "Name" : "GOT",
"Type" : "Action-Drama"
}
]
</code></pre>

<p>and I am trying to convert this into </p>

<pre><code>[
  { 
    "Name" : "Arrow",
    "Year" : "2001",
    "Type" : "Action-Drama",
  },
  {
   "Name" : "GOT",
   "Type" : "Action-Drama"
  }
]
</code></pre>

<p>Any help greatly appreciated. </p>

<p>Thank you. </p>
