2
0
Fork 0
mirror of https://github.com/ii64/sonic.git synced 2026-06-21 00:46:43 +08:00
sonic/internal
liu 7475b256ce
support JSON validate (#189)
* fix: check unescaped control chars in decode

* feat: add utf8 validate func

* feat: validate utf8 in json string

* feat: add validateone api

* fix: check unicode pointer for surrogate

* clang12 compile

* feat: Import `Valid()` and `Skip()`

* opt: use looktable

* fix utf-8 validate performance problem

* fix: utf-8 validate bug

* clang12 build

* feat: (encoder) accelerate validating json from `json.Marshaler`

chore!:
- `encoder.NoCompactMarshaler`changes to `encoder.CompactMarshaler`, which means compacting operation is not open by default

* fix: only one json value is `Valid()`

Co-authored-by: liuqiang <liuqiang.06@bytedance.com>
Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
2022-02-21 16:35:53 +08:00
..
caching fix: correct the field priority as encoding/json when unmarshal to struct (#142) 2021-11-30 10:28:50 +08:00
cpu feat: CPU feature detection support 2021-06-10 17:14:25 +08:00
jit fix: use stackmap of shadow func as jit func's (#127) 2021-11-09 11:50:40 +08:00
loader feat: adjust ABI for supporting go1.17 (#116) 2021-11-30 18:47:17 +08:00
native support JSON validate (#189) 2022-02-21 16:35:53 +08:00
resolver chore: minor fixes 2021-06-02 20:12:04 +08:00
rt support JSON validate (#189) 2022-02-21 16:35:53 +08:00