jsonObject = new JSONObject(contents.trim());
Iterator<?> keys = jsonObject.keys();
while( keys.hasNext() ){
String key = (String)keys.next();
if( jsonObject.get(key) instanceof JSONObject ){
}
}
原文:http://dengzhangtao.iteye.com/blog/2165608