Map map = new HashMap(); map.put("name", "老三"); map.put("age", 12); String jsonStr = JSONObject.toJSONString(map);
然后return
原文地址:https://www.cnblogs.com/jnhs/p/10178655.html
时间: 2024-10-11 05:58:15
Map map = new HashMap(); map.put("name", "老三"); map.put("age", 12); String jsonStr = JSONObject.toJSONString(map);
然后return
原文地址:https://www.cnblogs.com/jnhs/p/10178655.html