@LoadLevel(name="jackson") public class JacksonJsonParser extends Object implements JsonParser
| Constructor and Description |
|---|
JacksonJsonParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
get Name
|
<T> T |
parse(String json,
Class<T> type,
boolean ignoreAutoType)
parse json string to Object
|
String |
toJsonString(Object o,
boolean prettyPrint)
Object to Json string
|
String |
toJsonString(Object o,
boolean ignoreAutoType,
boolean prettyPrint)
Object to Json string
|
boolean |
useAutoType(String json)
Check json use auto type boolean.
|
public static final String NAME
public String getName()
JsonParsergetName in interface JsonParserpublic String toJsonString(Object o, boolean prettyPrint)
JsonParsertoJsonString in interface JsonParsero - the input objectprettyPrint - is pretty and printpublic boolean useAutoType(String json)
JsonParseruseAutoType in interface JsonParserjson - the jsonpublic String toJsonString(Object o, boolean ignoreAutoType, boolean prettyPrint)
JsonParsertoJsonString in interface JsonParsero - the input objectignoreAutoType - is ignore auto typeprettyPrint - is pretty and printpublic <T> T parse(String json, Class<T> type, boolean ignoreAutoType)
JsonParserparse in interface JsonParserT - the object typejson - the parse input jsontype - the class typeCopyright © 2023 Seata. All rights reserved.