2
0
Fork 0
mirror of https://github.com/ii64/sonic.git synced 2026-06-21 00:46:43 +08:00
sonic/decoder
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 feat: rewrite generic decoder in Go, using Finite State Machine 2021-06-16 23:05:21 +08:00
assembler_amd64_go116.go fix: premature GC on decoding string (#187) 2022-02-15 16:41:53 +08:00
assembler_amd64_go117.go fix: premature GC on decoding string (#187) 2022-02-15 16:41:53 +08:00
assembler_test.go fix: relocate stack pointers (#156) 2021-12-20 16:19:12 +08:00
compiler.go fix: 'string' option in struct tag as encoding/json (#148) 2021-12-03 15:46:09 +08:00
compiler_test.go feat: Pretouch recursively for large/deep struct (#137) 2021-11-26 14:12:51 +08:00
debug.go feat: adjust ABI for supporting go1.17 (#116) 2021-11-30 18:47:17 +08:00
decoder.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
decoder_test.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
errors.go feat: SyntaxError.Error() always calls Description() (#152) 2021-12-09 13:11:31 +08:00
errors_test.go fix: move large-size local array to _Stack (#162) 2021-12-30 14:51:23 +08:00
generic_amd64_go116.go fix: support writeBarrier for Go 1.15 (#181) 2022-01-27 17:37:42 +08:00
generic_amd64_go117.go fix: move large-size local array to _Stack (#162) 2021-12-30 14:51:23 +08:00
generic_amd64_go117_test.s feat: adjust ABI for supporting go1.17 (#116) 2021-11-30 18:47:17 +08:00
generic_amd64_test.s feat: adjust ABI for supporting go1.17 (#116) 2021-11-30 18:47:17 +08:00
generic_test.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 fix: move large-size local array to _Stack (#162) 2021-12-30 14:51:23 +08:00
stubs.go fix: use global var _KeepAlive to notice GC in shadow funcs (#145) 2021-12-02 11:08:40 +08:00
testdata_test.go chore: make it open-source 2021-05-28 23:58:58 +08:00
types.go chore: make it open-source 2021-05-28 23:58:58 +08:00
utils.go feat: rewrite the generic decoder in assembly 2021-06-21 11:34:18 +08:00