你可以通过这个(json-lib-2.3-jdk15.jar)jar里的方法转换JSONObject json = JSONObject.fromObject(Object);如果对象数组JSONArray json = JSONArray .fromObject(person);