我想分析複雜的JSON數據從服務器進來的形式如下:解析複雜的JSON數據
{
"Data 1":{
"2012-12-01":[
{
"field 1":"field 2",
"summary":"summary 1"
},
{
"field":"field 2",
"summary":"summary 2"
},
{
"service":"service 3",
"summary":"summary 3"
}
],
"2012-12-10":[
{
"field":"field 1",
"summary":"summary 1"
},
{
"field":"field 2",
"summary":"summary 2"
}
],
"2012-12-31":[
{
"field":"field 1",
"summary":"summary 1"
}
]
},
"Data 2":{
"2013-01-4":[
{
"field":"field 1",
"summary":"summary 1"
},
{
"field":"field 2",
"summary":"summary 2"
},
{
"field":"field 3",
"summary":"summary 3"
}
],
"2013-01-8":[
{
"field":"field 1",
"summary":"summary 1"
},
{
"field":"field 2",
"summary":"summary 2"
}
],
"2013-01-25":[
{
"field":"field 1",
"summary":"summary 1"
}
]
},
"Data 3":{
"2013-02-09":[
{
"field":"field 1",
"summary":"summary 1"
},
{
"field":"field 2",
"summary":"summary 2"
},
{
"field":"field 3",
"summary":"summary 3"
}
]
}
}
如何使用它我SBJSON解析?
請幫
在此先感謝
您的任何股票解析器將返回的JSON解析到一個數組/詞典「巢」。對Objective-C來說,有六種不同的解析器「品牌」,最自由的。你提供JSON字符串並返回「嵌套」。 –
使用在線JSON解析器(例如http://json.parser.online.fr/)來「可視化」JSON。 –
在使用SBJSon解析器解析時需要幫助,請幫助 – iOSDev