public class JsonSerializer extends Object implements ObjectSerializer
| Constructor and Description |
|---|
JsonSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(String jsonObject)
Deserializes a Json string representation to an object.
|
String |
getContentType()
Returns "application/json" content-type.
|
String |
serialize(Object object)
Serializes an object to Json.
|
public String serialize(Object object)
serialize in interface ObjectSerializerobject - Object to serialize.public Object deserialize(String jsonObject)
deserialize in interface ObjectSerializerjsonObject - String representation of the object to deserialize.public String getContentType()
getContentType in interface SerializerCopyright © 2012 ElPaso Software. All Rights Reserved.