| 程序包 | 说明 |
|---|---|
| cn.ponfee.scheduler.common.util |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
Jsons.bytes(Object target)
Serialize the byte array of json
|
<T> T |
Jsons.parse(byte[] json,
Class<T> target) |
<T> T |
Jsons.parse(byte[] json,
com.fasterxml.jackson.databind.JavaType javaType)
Deserialize the json byte array to java object
|
<T> T |
Jsons.parse(byte[] json,
Type type) |
<T> T |
Jsons.parse(byte[] json,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
<T> T |
Jsons.parse(String json,
Class<T> target) |
<T> T |
Jsons.parse(String json,
com.fasterxml.jackson.databind.JavaType javaType)
Deserialize the json string to java object
|
<T> T |
Jsons.parse(String json,
Type type) |
<T> T |
Jsons.parse(String json,
com.fasterxml.jackson.core.type.TypeReference<T> type) |
String |
Jsons.string(Object target)
Converts an object(POJO, Array, Collection, ...) to json string
|
void |
Jsons.write(OutputStream output,
Object target)
Converts object to json, and write to output stream
|
Copyright © 2023. All rights reserved.