android中如何解析没有Key的Json数据

jsonObject = new JSONObject(contents.trim());
Iterator<?> keys = jsonObject.keys();

while( keys.hasNext() ){
    String key = (String)keys.next();
    if( jsonObject.get(key) instanceof JSONObject ){

    }
}

猜你喜欢

转载自dengzhangtao.iteye.com/blog/2165608