我正在尝试将其从网络服务器解析为 iOS 中的 tableview
{
"transactions": [
{
"ID": "350",
"description": "Macbook Pro 17 inch",
"price": "2811.83"
},
{
"ID": "351",
"description": "Macbook - white",
"price": "1720.10"
},
{
"ID": "352",
"description": "iPad 2",
"price": "650.00"
},
{
"ID": "353",
"description": "Macbook Pro 17 inch",
"price": "3233.98"
},
{
"ID": "354",
"description": "Macbook Pro 15 inch",
"price": "2100.55"
},
{
"ID": "355",
"description": "Macbook Air",
"price": "899.99"
},
{
"ID": "356",
"description": "Mac Pro",
"price": "3400.77"
}
]
}
我唯一想要的就是描述和价格。我需要将每件商品的价格相加并得出总价。每个事务名称都需要存储在一个中NSArray
,然后显示在一个中UITableView
。
有什么帮助吗?JSONkit 没有给我 SBJSON 解析器