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 ObjectSerializer
object
- Object to serialize.public Object deserialize(String jsonObject)
deserialize
in interface ObjectSerializer
jsonObject
- String representation of the object to deserialize.public String getContentType()
getContentType
in interface Serializer
Copyright © 2012 ElPaso Software. All Rights Reserved.