json在线解析:https://www.sojson.com/
String source = “{“tSpeakUrl”:“http://openapi.youdao.com/ttsapi?q=Brofjorden&langType=zh-CHS&sign=BDB192C3B71100805BE44500E1B9C8B1&salt=1594364869753&voice=4&format=mp3&appKey=2fddf5eb3360f6c6”,“RequestId”:“d596183f-ceb9-460d-864d-f8c41f7d950e”,“web”:[{“value”:[“布罗夫约尔丹”,“布罗福德港”,“布罗弗约登”,“港口名”],“key”:“Brofjorden”}],“query”:“Brofjorden”,“translation”:[“Brofjorden”],“errorCode”:“0”,“dict”:{“url”:“yddict://m.youdao.com/dict?le=eng&q=Brofjorden”},“webdict”:{“url”:“http://m.youdao.com/dict?le=eng&q=Brofjorden”},“l”:“en2zh-CHS”,“isWord”:false,“speakUrl”:“http://openapi.youdao.com/ttsapi?q=Brofjorden&langType=en&sign=BDB192C3B71100805BE44500E1B9C8B1&salt=1594364869753&voice=4&format=mp3&appKey=2fddf5eb3360f6c6”}\n”;
(2)创建 JSONObject 对象
JSONObject jsonObject = new JSONObject(source);
(3)JSONObject 转 Map<String, Object>
Map<String, Object> jsonMap = jsonObject.toMap();
(4)遍历Map<String, Object>
public static void foreachJsonMap(Map<String, Object> jsonMap) {
// 遍历jsonMap
Set<Map.Entry<String, Object>> set = jsonMap.entrySet();
set.forEach( entry -> {
String key = e