public class Json
extends java.lang.Object
| Constructor and Description |
|---|
Json() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
deserialize(java.lang.String json)
Deserializes the given JSON-formatted string into an object.
|
static java.lang.String |
serialize(java.lang.Object obj)
Serializes the given object to a JSON string.
|
public static java.lang.String serialize(java.lang.Object obj)
obj - The object to JSON-serialize.public static java.lang.Object deserialize(java.lang.String json)
json - The string to deserialize.