public class JsonUtils extends Object
| 构造器和说明 |
|---|
JsonUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
fromJson(byte[] json,
Class<T> type) |
static <T> T |
fromJson(byte[] json,
Class<T> type,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
static <T> T |
fromJson(String json,
Class<T> type) |
static <T> T |
fromJson(String json,
com.fasterxml.jackson.core.type.TypeReference<T> typeReference) |
static long |
readJsonNumber(byte[] json) |
static long |
readJsonNumber(String json) |
static com.fasterxml.jackson.databind.node.ObjectNode |
readJsonObject(byte[] json) |
static com.fasterxml.jackson.databind.node.ObjectNode |
readJsonObject(String json) |
static String |
toJson(Object object) |
static String |
toJson(Object object,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
public static String toJson(Object object, com.fasterxml.jackson.databind.ObjectMapper mapper)
public static <T> T fromJson(String json, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
public static <T> T fromJson(byte[] json,
Class<T> type)
public static <T> T fromJson(byte[] json,
Class<T> type,
com.fasterxml.jackson.databind.ObjectMapper mapper)
public static com.fasterxml.jackson.databind.node.ObjectNode readJsonObject(byte[] json)
public static com.fasterxml.jackson.databind.node.ObjectNode readJsonObject(String json)
public static long readJsonNumber(String json)
public static long readJsonNumber(byte[] json)
Copyright © 2018. All rights reserved.