public interface JsonPlugin extends Plugin
| 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
|
<I> String toJson(I data)
I - type of datadata - data<O> O toObject(String json, Class<O> clazz)
O - type of classjson - json stringclazz - class<I,O> O toObject(I data,
Type type)
I - data typeO - typedata - datatype - typeCopyright © 2023 flmelody. All rights reserved.