1、接口变化对照表
v3 | v4 | |
loadObj(.) | ofBean(.) | 加载 java bean |
loadStr(.) | ofJson(.) | 加载 json |
ary() | getArray() | |
obj() | getObject() | |
val() | getValue() | |
val(.) | setValue(.) | |
fill(.) | fill(.) | 填充 java bean |
fillStr(.) | fillJson(.) | 填充 json |
forEach(.) | getArray().forEach(.) | |
| getObject().forEach(.) | |
toObject(.) | toBean(.) | 转为 java bean |
build(.) | then(.) | |
getRawXxx() | getValue() | |
| getValueAs() | |
count() | size() | |
contains(.) | hasKey(.) | |
| hasValue(.) | |
removeAt(.) | remove(.) | |
attrGet(.) | / | |
attrSet(.) | / | |
attrForeach(.) | / | |
toData() | toBean() | |
toObject() | toBean() | |
toObjectList() | toBean(new TypeRef<List>(){}) | |
toArray() | toBean(new TypeRef<List>(){}) | |
- | - | - |
stringify(.) | serialize(.) | 序列化 |
2、Json 定制
CodecLib.addFactory(.)
CodecLib.addDecoder(.)
CodecLib.addEncoder(.)
Options.of().addFactory(.).addDecoder(.).addEncoder(.).addFeature(.)
3、JsonPath 定制
FunctionLib.register(.)
OperationLib.register(.)