public class JacksonPlugin extends Object implements JsonPlugin
| Constructor and Description |
|---|
JacksonPlugin() |
| Modifier and Type | Method and Description |
|---|---|
<I> String |
toJson(I data)
convert data into json string
|
<I,O> O |
toObject(I data,
Type type)
convert json string into specific type
|
<O> O |
toObject(String json,
Class<O> clazz)
convert json string into specific class
|
public <I> String toJson(I data)
toJson in interface JsonPluginI - type of datadata - datapublic <O> O toObject(String json, Class<O> clazz)
toObject in interface JsonPluginO - type of classjson - json stringclazz - classpublic <I,O> O toObject(I data,
Type type)
toObject in interface JsonPluginI - data typeO - typedata - datatype - typeCopyright © 2023 flmelody. All rights reserved.