public final class JsonUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonUtils.JsonToken
Types of Json tokens.
|
static class |
JsonUtils.Types
Known types.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createProxy(Class<T> interf) |
static String |
getJsonString(String string)
Transform Java String to JSON string.
|
static Set<String> |
getTransientFields(Class<?> clazz)
Check fields in class which marked as 'transient' or annotated with
JsonTransient annotation . |
static JsonUtils.Types |
getType(Class<?> clazz)
Get 'type' of Class.
|
static JsonUtils.Types |
getType(Object o)
Get 'type' of Object.
|
static boolean |
isKnownType(Class<?> clazz)
Check is given Class is known.
|
static boolean |
isKnownType(Object o)
Check is given Object is known.
|
public static String getJsonString(String string)
string - source String.public static boolean isKnownType(Object o)
o - Object.public static boolean isKnownType(Class<?> clazz)
clazz - Class.public static JsonUtils.Types getType(Object o)
KNOWN_TYPES .o - Object.public static JsonUtils.Types getType(Class<?> clazz)
KNOWN_TYPES .clazz - Class.public static Set<String> getTransientFields(Class<?> clazz)
JsonTransient annotation . Transient fields will be not serialized
in JSON representation.clazz - the class.public static <T> T createProxy(Class<T> interf)
Copyright © 2015. All rights reserved.