public class JsonSerialization extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
| Constructor and Description |
|---|
JsonSerialization() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
readValue(byte[] bytes,
Class<T> type) |
static <T> T |
readValue(InputStream bytes,
Class<T> type) |
static <T> T |
readValue(String bytes,
Class<T> type) |
static byte[] |
writeValueAsBytes(Object obj) |
static String |
writeValueAsString(Object obj) |
public static String writeValueAsString(Object obj) throws IOException
IOExceptionpublic static byte[] writeValueAsBytes(Object obj) throws IOException
IOExceptionpublic static <T> T readValue(byte[] bytes,
Class<T> type)
throws IOException
IOExceptionpublic static <T> T readValue(String bytes, Class<T> type) throws IOException
IOExceptionpublic static <T> T readValue(InputStream bytes, Class<T> type) throws IOException
IOExceptionCopyright © 2023 JBoss by Red Hat. All rights reserved.