public class JsonSerialization extends Object
| Constructor and Description |
|---|
JsonSerialization() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
fromBytes(Class<T> type,
byte[] bytes) |
static <T> T |
fromBytes(Class<T> type,
byte[] bytes,
ResteasyProviderFactory factory) |
static <T> T |
fromString(Class<T> type,
String json) |
static <T> T |
fromString(Class<T> type,
String json,
ResteasyProviderFactory factory) |
static byte[] |
toByteArray(Object token,
boolean indent) |
static byte[] |
toByteArray(Object token,
ResteasyProviderFactory factory) |
static String |
toString(Object token,
boolean indent) |
static String |
toString(Object token,
ResteasyProviderFactory factory) |
public static byte[] toByteArray(Object token, boolean indent) throws Exception
Exceptionpublic static byte[] toByteArray(Object token, ResteasyProviderFactory factory) throws IOException
IOExceptionpublic static String toString(Object token, ResteasyProviderFactory factory) throws Exception
Exceptionpublic static String toString(Object token, boolean indent) throws Exception
Exceptionpublic static <T> T fromString(Class<T> type, String json) throws Exception
Exceptionpublic static <T> T fromString(Class<T> type, String json, ResteasyProviderFactory factory) throws Exception
Exceptionpublic static <T> T fromBytes(Class<T> type, byte[] bytes) throws IOException
IOExceptionpublic static <T> T fromBytes(Class<T> type, byte[] bytes, ResteasyProviderFactory factory) throws IOException
IOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.