Releases: noear/snackjson
Releases · noear/snackjson
Snack-Jsonpath v4.0.2
- Add Write_BigDecimalAsPlain attribute
- Adjust ONode:nodeType,getType merged to 'type()' in the same style as' options() '
- Changed QueryContext:isInFilter to 'isFiltered()'
- Rename Write_BigNumbersAsString to Write_DoubleAsString
- Improved effect compatibility with snack3
Snack-Jsonpath v4.0.1
Improved compatibility with v3 feature "soft". Feature comparison table: https://solon.noear.org/article/1184
Specific updates:
- Added support for the ONodeCreator static method (plain class)
- Added ONodeAttr:ignore annotation support
- Added Write_BooleanAsNumber
- Added Read_UseBigDecimalMode
- Added Read_UseBigIntegerMode
- add DecodeContext: hasFeature EncodeContext: hasFeature new features
- Optimize Write_Nulls for better control over Map output
- Optimize Write_BrowserCompatible write performance
Snack-Jsonpath v4.0.0
- Refactor the entire project (everything changed except the name)
- The new version has about 900 single tests, covering about 95%, which lasted less than half a year
- Supports the IETF JSONPath (RFC 9535) standard (the first Java framework to support it) and is compatible with
jayway.jsonpath - Add json-schema support
Snack v3.2.136
- 恢复 ClassWrap.get(clz) 方法
- 优化 DateUtil 的兼容性,兼容
2025-07-23 08:12:33.0
Snack v3.2.134
- 优化 string 转 Enum 支持(支持更大泛围)
- 添加 NotWriteRootClassName 特性
- 优化 analyse_val 增加格式校验
- 优化 analyse_val 处理,兼容 nummber 这种没有引号的字符串
- 增强 DateUtil 能力,支持解析纯数字的时间cou
Snack v3.2.129
- 修复 二级泛型数组类型会丢失泛型的问题
- 修复 GenericUtil.reviewType 可能会引起死循环的问题
- 优化 GenericUtil.reviewType 泛型深度兼容能力
Snack v3.2.126
- 添加 反序列化时,单值自动转数组支持(之前只支持转集合)
- 添加 自体编码与解码支持
- 优化 JsonPath 数字表达式处理添加 string 解析排除(解析出错)
- 优化 对 asc 码 0到7 进行 unicode 编码(避免 web 不兼容)
- 移除 WriteSlashAsSpecial 特性,没用到
- 修复 ObjectToer 处理 java.sql.Date 转 LocalDate 出错问题
Snack v3.2.122
- 添加 Feature.UseSetter 无字段的属性支持
- 添加 flat 扁平化处理支持
- 添加 三种时间格式解析
- 添加 oNode.parent(), oNode.parents(depth)
- 添加 jsonpath first() 和 last() 函数
- 添加
oNode.usePaths()使用路径(把当前作为根级,深度生成每个子节点的路径)。一般只在根级生成一次 - 添加
oNode.path()获取路径属性(可能为 null;比如临时集合) - 添加
oNode.pathList()获取节点路径列表(如果是临时集合,会提取多个路径) - 调整 json path。数组为空时,min,max,sum,avg 为 null;count 为 0。保持与 sql 一样
- 优化在重组时的
[n]兼容性 - 优化 统一初始化异常的描述
- 优化 0E-10 表达式兼容性(没有小数点的科学计数法)
- 修复 当节点不为 obj 时,使用
getNew(key)会异常的问题
Snack v3.2.111
- 添加 jdk23 编译兼容
- 添加 Duration 反序列化支持
- 添加 uri 反序列化支持
- 添加 对OffsetTime时间类型的处理
- 优化 val(obj) 支持数组形态
- 优化 反序列化时传入的类型优先
- 优化 solon.mvc kotlin data class 带默认值的反序列化支持
- 修复 反序列化时传入的类型优先时,异常类失效的问题
- 修复 WriteArrayClassName 还原失效的问题
Snack v3.2.100
- 添加 UseOnlySetter, UseGetter, UseOnlyGetter 特性
- 添加 ThData::clear 接口,用于清理 ThreadLocal 缓存
- 添加 Collections.EMPTY_MAP 等空集合的赋值支持
- 添加 Properties "type['a']" 风格的支持
- 添加 Properties "type[a]" 风格的支持
- 添加 Properties "type[]" 风格的支持
- 添加 Properties 增强模式(NameValues)转换
- 添加 ONodeAttr::asString
- 加强 部分格式验证
- 优化 实例化异常提示