The array of objects looks like this:
[
{"Number":64,"Earning":160000},{"Number":64,"Earning":160000},
{"Number":64,"Earning":160000},{"Number":64,"Earning":160000},
{"Number":64,"Earning":160000},{"Number":64,"Earning":160000},
{"Number":64,"Earning":160000},{"Number":64,"Earning":160000}
]
and the required JavaScript array is:
[
[160000, 64], [160000, 64], [160000, 64], [160000, 64],
[160000, 64], [160000, 64], [160000, 64], [160000, 64]
]
I want to convert JSON object data into JavaScipt and JSON data which I supply is given above and JavaScript array which I want is also defined. I want a JavaScript methode which solves this problem
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…