public final class JsonUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static Base64.Decoder |
BASE64_DECODER |
static Base64.Encoder |
BASE64_ENCODER |
static Function<Object,?> |
DEFAULT_CLONER |
| Constructor and Description |
|---|
JsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
deepCopy(Object val,
Function<Object,?> copier) |
static Object |
wrapJsonValue(Object val)
Wraps well known java types to adhere to the Json expected types.
|
public static final Base64.Encoder BASE64_ENCODER
public static final Base64.Decoder BASE64_DECODER
public static Object wrapJsonValue(Object val)
Map will be wrapped to JsonObjectList will be wrapped to JsonArrayInstant will be converted to iso date Stringbyte[] will be converted to base64 StringEnum will be converted to enum name Stringval - java typeval if not applicable.Copyright © 2021. All rights reserved.