HashMap<String, Object> map = new HashMap<String, Object>();
     
        map.put("downLoad", "http://localhost:8080/testWeb/file/" + name);
 
        JSONObject o = new JSONObject(map);


还需 json.jar包

04-08 20:10