public class JsonParser extends Object
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Map<String,Object> map,
com.fasterxml.jackson.databind.JavaType type) |
static JsonParser |
get() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
com.fasterxml.jackson.databind.type.TypeFactory |
getTypeFactory() |
<T> T |
parseBackFromSnake(String snakeJson,
Class<T> clazz) |
<T> T |
parsJson(String data) |
Object |
parsJson(String data,
com.fasterxml.jackson.databind.JavaType type) |
<T> String |
toJson(T object) |
public static JsonParser get()
public <T> T parsJson(String data) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic Object parsJson(String data, com.fasterxml.jackson.databind.JavaType type) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic <T> String toJson(T object) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic com.fasterxml.jackson.databind.type.TypeFactory getTypeFactory()
public <T> T parseBackFromSnake(String snakeJson, Class<T> clazz) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2019. All rights reserved.