| 程序包 | 说明 |
|---|---|
| cn.hutool.json |
JSON封装,基于json.org官方库改造
|
| cn.hutool.json.serialize |
JSON自定义序列化和反序列化接口和默认实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
JSONUtil.putDeserializer(Type type,
JSONDeserializer<?> deserializer)
加入自定义的反序列化器
|
| 限定符和类型 | 方法和说明 |
|---|---|
static JSONDeserializer<?> |
GlobalSerializeMapping.getDeserializer(Type type)
获取自定义的反序列化器,如果未定义返回
null |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
GlobalSerializeMapping.put(Type type,
JSONDeserializer<?> deserializer)
加入自定义的反序列化器
|
Copyright © 2020. All rights reserved.