All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
static ObjectMapper |
defaultMapper() |
static String |
encodeInlineJson(String json)
We can't inline JSON into the page, because that stuff is read by the browser's HTML interpreter first rather than the JS interpreter, as it
would in AJAX.
|
static Map<String,Object> |
fromJson(String json) |
static <T> T |
fromJson(String specJson,
Class<T> expectedClass) |
static <T> T |
fromJson(String specJson,
Class<T> expectedClass,
ObjectMapper mapper) |
static Map<String,Object> |
fromJson(String json,
ObjectMapper mapper) |
static <T> T |
fromJson(String json,
TypeReference<T> typeRef) |
static <T> T |
fromJson(String json,
TypeReference<T> typeRef,
ObjectMapper mapper) |
static <T> T |
fromJson(String json,
TypeReference<T> typeRef,
ObjectMapper mapper,
boolean suppressErrors) |
static <T> T |
fromMap(Map json,
Class<T> expectedClass) |
static <T> T |
fromMap(Map json,
Class<T> expectedClass,
ObjectMapper mapper) |
static String |
toJson(Object object) |
static String |
toJson(Object object,
ObjectMapper mapper) |
static Map<String,Object> |
toMap(Object object) |
static Map<String,Object> |
toMap(Object object,
ObjectMapper mapper) |
static ObjectMapper |
withUnknownPropertiesMapper() |