我找到了下面的json formated文件。是否可以用改造解析?一般json的每個部分都有鍵和值,但這裏有一個數組有鍵,其他數組有值。那麼如何解析它?Android JSON解析與改進庫
{
"insertnewdatas": {
"columns": [
"id",
"operatorName",
"latitude",
"longitude",
"location",
"address",
"currencies",
"exchange",
"exchangeLimits",
"workingDays",
"link",
"phone",
"email",
"dateTime",
"created_at",
"updated_at"
],
"records": [
[
3,
"Coin Source",
"22.3475",
"91.8123",
"Chittagong",
"Oxygen , Chittagong",
"Cash",
"option2",
"$500/month",
"30",
"no link",
"017000000000",
"[email protected]",
"21-10-2017",
"2017-03-01 17:40:42",
"2017-03-01 17:40:42"
],
[
4,
"Coin Source",
"22.3475",
"91.8123",
"Chittagong",
"Oxygen , Chittagong",
"Cash",
"option2",
"$500/month",
"30",
"no link",
"017000000000",
"[email protected]",
"21-10-2017",
"2017-03-01 17:40:49",
"2017-03-01 17:40:49"
],
[
5,
"Bit Coin",
"22.3575",
"91.8323",
"Chittagong",
"Chittagong",
"both",
"option1",
"$500/month",
"30",
"no link",
"017000000000",
"[email protected]",
"21-10-2017",
"2017-03-01 17:43:34",
"2017-03-01 17:43:34"
]
]
}
}
這是一個非常糟糕的格式。我會建議你開始試圖改變它 – njzk2