public abstract class JsonMapper extends Object
Constructor and Description |
---|
JsonMapper() |
Modifier and Type | Method and Description |
---|---|
protected abstract <T> T |
doFromJson(Object json,
Type type) |
<T> T |
fromJson(Object json,
Type type) |
static boolean |
isJsonString(Object value)
Performs a simple validation on an object to see if it appears to be a JSON string.
|
static boolean |
isJsonStringRepresentsCollection(Object value) |
byte[] |
toJson(Object value) |
abstract String |
toString(Object value) |
public byte[] toJson(Object value)
public static boolean isJsonString(Object value)
value
- candidate object to evaluatepublic static boolean isJsonStringRepresentsCollection(Object value)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.