public final class JSON extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
decode(Class<T> typeClass,
Reader input) |
static <T> T |
decode(Class<T> typeClass,
Type type,
Reader input) |
static JsonTypeRegistry |
getRegistry() |
static <T> String |
render(T instance) |
static <T> String |
render(T instance,
Type fullType) |
static <T> void |
render(Writer writer,
T instance) |
static <T> void |
render(Writer writer,
T instance,
Type fullType) |
@Nonnull public static JsonTypeRegistry getRegistry()
public static <T> T decode(@Nonnull Class<T> typeClass, @Nonnull Reader input) throws Exception
Exceptionpublic static <T> T decode(@Nonnull Class<T> typeClass, @Nonnull Type type, @Nonnull Reader input) throws Exception
Exceptionpublic static <T> void render(@Nonnull Writer writer, @Nullable T instance) throws Exception
Exceptionpublic static <T> void render(@Nonnull Writer writer, @Nullable T instance, @Nullable Type fullType) throws Exception
Exception@Nonnull public static <T> String render(@Nullable T instance, @Nullable Type fullType) throws Exception
ExceptionCopyright © 2017 etc.to. All rights reserved.