String json = "{"status":0,"result":{"location":{"lng":120.32298699999991,"lat":40.983423959213059},"formatted_address":"遼寧省葫蘆島市連山區"}}" Map mapTypes = JSON.parseObject(json); //獲取result
String result = mapTypes.get("result").toString(); mapTypes = JSON.parseObject(result );
//獲取地址 String formattedAddress = mapTypes.get("formatted_address").toString();
其他方法詳細參考:https://www.cnblogs.com/jpfss/p/8625526.html