The array of objects looks like this:
[ {\"Number\":64,\"Earning\":160000},{\"Number\":64,\"Earning\":160000}, {\"Number\":64,\"Earning\":160000},{\"
Iterate over the array and construct a new array. Most javascript libraries have a map function where you only need to supply a mapping function to achieve this.
map