Map<String,String> map = new HashMap<String,String>(); map.put("url", "&response_type=code&scope=snsapi_base&state=2#wechat_redirect"); Gson gson = new GsonBuilder().disableHtmlEscaping().create(); System.out.println(gson.toJson(map));
时间: 2024-10-04 22:16:45