I have the following JSON object :
var myObject = {"priorityset":
[
{"name":"Prio1", "valueA":"0", "valueB":"0", "valueC":"0", "valueD":"1"},
{"name":"Prio2", "valueA":"1", "valueB":"0", "valueC":"0", "valueD":"1"},
{"name":"Prio3", "valueA":"0", "valueB":"0", "valueC":"0", "valueD":"1"}
]
};
I want to modify this object so I get something like this:
var myObject =
[
{"name":"Prio1", "valueA":"0", "valueB":"0", "valueC":"0", "valueD":"1"},
{"name":"Prio2", "valueA":"1", "valueB":"0", "valueC":"0", "valueD":"1"},
{"name":"Prio3", "valueA":"0", "valueB":"0", "valueC":"0", "valueD":"1"}
];
I have tried to solve this by myself, but no solution so far. Any ideas?
Thanks in advance.