public final class JsonUtils extends Object
GXInboundResponse's content.| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromJson(byte[] bytes,
Class<T> raw)
Deserializes the specified Json bytes into an object of the specified class
|
static <T> T |
fromJson(String json,
Class<T> raw)
Deserializes the specified Json bytes into an object of the specified class
|
public static <T> T fromJson(byte[] bytes,
Class<T> raw)
throws Exception
T - the type of the desired objectjson - the string from which the object is to be deserializedclassOfT - the class of TException - if the deserialization failspublic static <T> T fromJson(String json, Class<T> raw) throws Exception
T - the type of the desired objectjson - the string from which the object is to be deserializedraw - the class of TException - if the deserialization failsCopyright © 2019. All Rights Reserved.