Want to split one single JSON objects to multiple JSON objects using Javascript
问题 I have a JSON response like below, [{label: "8", value: "1", value2: "0", value3: "0"},{label: "9", value: "7", value2: "2", value3: "6"},{label: "10", value: "12", value2: "1", value3: "0"},…] Now I want to split it into 4 JSON objects for each key, like below. [{label: "8"},{label: "9"},{label: "10"},…] [{value: "1"},{value: "7"},{value: "12"},…] [{value2: "0"},{value2: "2"},{value2: "1"},…] and more I tried below things but wasn't successful. Try1: var o2 = { uhash: o.uhash }; delete o