public JSONObject toJsonObject() {\r
\r
ObjectMapper mapper = new ObjectMapper();\r
- // mapper.configure(SerializationConfig.Feature.WRAP_ROOT_VALUE, true);\r
+ // mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\r
//mapper.enable(SerializationFeature.WRAP_ROOT_VALUE);\r
\r
mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\r
- // mapper.enable(org.codehaus.jackson.map.DeserializationConfig.Feature.UNWRAP_ROOT_VALUE);\r
+ // mapper.enable(com.fasterxml.jackson.map.DeserializationFeature.UNWRAP_ROOT_VALUE);\r
JSONObject json = new JSONObject();\r
try {\r
json = new JSONObject(mapper.writeValueAsString(this));\r
public String toString() {\r
return this.toJsonString();\r
}\r
-}
\ No newline at end of file
+}\r