2
0
Fork 0
mirror of https://github.com/ii64/sonic.git synced 2026-06-21 00:46:43 +08:00
sonic/internal/rt
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
..
asm.s fix: move large-size local array to _Stack (#162) 2021-12-30 14:51:23 +08:00
fastmem.go fix: support writeBarrier for Go 1.15 (#181) 2022-01-27 17:37:42 +08:00
fastvalue.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
gcwb.go fix: support writeBarrier for Go 1.15 (#181) 2022-01-27 17:37:42 +08:00
int48.go chore: make it open-source 2021-05-28 23:58:58 +08:00