I have an array of a class A. Class A contains 2 properties as Weight and Date.
var array = [
A{Weight: 50, Date: 01/01/2009},
A{Weight: 55, Date: 01/02/2009},
A{Weight: 60, Date: 01/03/2009},...
]
How can I convert the above array to something like this:
var array = [
{Weight: 50, Date: 01/01/2009},
{Weight: 55, Date: 01/02/2009},
{Weight: 60, Date: 01/03/2009},...
]