2
0
Fork 0
mirror of https://github.com/ii64/sonic.git synced 2026-06-21 00:46:43 +08:00
sonic/encoder
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 chore: make it open-source 2021-05-28 23:58:58 +08:00
assembler_amd64_go116.go fix: support writeBarrier for Go 1.15 (#181) 2022-01-27 17:37:42 +08:00
assembler_amd64_go117.go feat:(encoder) add optimazing options (#168) 2022-01-05 14:20:46 +08:00
assembler_test.go fix: unmarshalers are always addressable 2021-09-06 16:53:51 +08:00
compiler.go feat: Pretouch recursively for large/deep struct (#137) 2021-11-26 14:12:51 +08:00
compiler_test.go feat: adjust ABI for supporting go1.17 (#116) 2021-11-30 18:47:17 +08:00
debug.go fix: use global var _KeepAlive to notice GC in shadow funcs (#145) 2021-12-02 11:08:40 +08:00
encoder.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
encoder_test.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
errors.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
mapiter.go feat: adjust ABI for supporting go1.17 (#116) 2021-11-30 18:47:17 +08:00
pools.go fix:(encoder) keep arguement buf alive (#166) 2021-12-31 17:15:35 +08:00
primitives.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
sort.go fix: make it sorted when marshalling integer key map (#117) 2021-10-18 19:31:33 +08:00
sort_test.go refactor: make it more readable (#104) 2021-09-18 11:31:25 +08:00
stubs_go116.go fix: support writeBarrier for Go 1.15 (#181) 2022-01-27 17:37:42 +08:00
stubs_go117.go fix: relocate stack pointers (#156) 2021-12-20 16:19:12 +08:00
testdata_test.go chore: make it open-source 2021-05-28 23:58:58 +08:00
types.go feat: supports map key-sorting via encoder options 2021-08-16 18:31:41 +08:00
utils.go feat: performance optimizations 2021-07-02 14:38:12 +08:00