public class JSONObject
extends java.lang.Object
Constructor and Description |
---|
JSONObject(java.lang.Object serializeObject)
Constructs and creates JSON from the given Object.
|
JSONObject(java.lang.String jsonStr)
Constructs using JSON notation.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.Class<T> valueType) |
java.lang.String |
getJsonString() |
boolean |
isException() |
void |
put(java.lang.Object serializeObject) |
void |
setJsonString(java.lang.String jsonString) |
java.lang.String |
toString() |
public JSONObject(java.lang.String jsonStr)
jsonStr
- public JSONObject(java.lang.Object serializeObject) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonGenerationException, java.io.IOException
serializeObject
- com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonGenerationException
java.io.IOException
public void put(java.lang.Object serializeObject) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonGenerationException, java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonGenerationException
java.io.IOException
public <T> T get(java.lang.Class<T> valueType) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
java.io.IOException
public boolean isException()
public java.lang.String getJsonString()
public void setJsonString(java.lang.String jsonString)
public java.lang.String toString()
toString
in class java.lang.Object