【发布时间】:2015-05-12 14:22:21
【问题描述】:
我有一个巨大的 JSON,需要在 zoho 创建者中解析,然后将该数据上传到 zoho 报告中。
JSON 数据:
{
"response": {
"result": {
"SalesOrders": {
"row": [
{
"no": "1",
"FL": [
{
"content": "15 Taco Bar - Fabio 5/12",
"val": "Subject"
},
{
"content": "Emily Fabio",
"val": "Contact Name"
},
{
"content": "Confirmed for Delivery",
"val": "Status"
},
{
"content": "Chaska Private Parties",
"val": "Account Name"
}
]
}
]
}
},
"uri": "/crm/private/json/SalesOrders/getRecords"
}
}
jsonstring=jsondata.toString(); //convert json data to string
resp1=remove(jsonstring,"{\"response\":{\"result\":{\"Potentials\":{\"row\":");//Formatted json
list={"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "15"}; --This is list
jsonmap = map();
jsonmap=jsonstring.toMap(); //Convert json string to map
jsonlist=jsonstring.toJSONList();
address=jsonmap.get("Origin Address");
info address;
for each index j in list
{
address = jsonstring.getJSON("Origin Address"); // get data from json.
info address; // print address
}
它总是显示null 返回。
请帮助我做到这一点。
【问题讨论】: