code page="c#"
{ "data": [{"CUSTOMER_NAME_ID":"INV10143","CUSTOMER_NAME":"rossperry","CUSTOMER_NAME_PAN":"AVRPG4803D","EMAIL":"[email protected]","PLAN_NAME":"MOSt special Plan Growth","DATE":"\/Date(1452452300000)\/","AMOUNT":5000.0000,"CONFIRM_UNITS":314.832}]}
這是我得到的解析字符串成json對象後,但我不能映射到array.actually我得到解析後的數據,我提到aboove如何csan我得到object.why給我錯誤obj .data undefined如何將json字符串轉換爲數組?
請告訴我們你已經試過至今 –
可能重複:http://stackoverflow.com/questions/9420567/convert-json- string-to-javascript-array –
對不起,你是什麼意思'有數據'?爲什麼你不能使用'JSON.parse()'? – Aron