How to merge a json array of json objects to a single json object
问题 I need to merge json array of objects such the values of same keys are appended Lets say I have an unknown json array like "jsonarray": [ { "behavior": [ "file", "create_doc_exe" ], "id": 3303511, "platform": "Windows 7 x64 SP1, Adobe Reader 11, Flash 11, Office 2010" }, { "info": [ "sign , 3c4e53e " ], "behavior": [ "sys_folder", "file", "process", "crash" ], "id": 3303, "platform": "Windows XP, Adobe Reader 9.4.0, Flash 10, Office 2007" } ] I want the result to be this way: "jsonarray": {