Here is a JSON object that I need help modifying:
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 would like to modify it to have the following structure:
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 been struggling to figure this out on my own. Any suggestions or solutions?
Thank you in advance.