Commit Graph

3 Commits

Author SHA1 Message Date
jeffery
ffe9c42a54 jsonutils optimization (#43) 2023-05-12 19:04:20 +08:00
jeffery
da0e416c8d Feature(v2):jsonToStruct supports interface type assignment (#41)
* Feature(v2):jsonToStruct supports interface type assignment

close #38

- `JsonToStruct` 支持基本数据类型中定义 `interface{}`
- `JsonToStruct` 支持基本数据类型中定义 `any`
- 对于 `parsePrimitiveValue` 的 `string` 类型转义兼容
- 对于 `parsePrimitiveValue` 的 `bool` 类型转义兼容
2023-05-12 18:44:30 +08:00
jeffery
bbe169cba0 fix:parse slices (#37)
1. Does not support parsing map type
2. Parse the slice type, if the data type is inconsistent, panic error

close #35
2023-05-11 17:41:34 +08:00