解析普通难度的json就不记录了...网上到处都是..
解析 Map<String,Map<String,String>> 类型的如下:
运行一下就知道结果了~~
解析 Map<String,Map<String,String>> 类型的如下:
{"3":{"32":"study3","35":"study33","33":"study31","34":"study32"},"2":{"22":"study2","23":"study21","24":"study22","25":"study23"},"1":{"15":"study3","13":"study1","14":"study2","12":"study"}}
function(json) {
$.each(json,function(i,k){
$.each(k,function(m){
alert("key:"+i+" term[key]:"+m+" term[value]:"+k[m]);
});
});
}
运行一下就知道结果了~~