2
0
Fork 0
mirror of https://github.com/ii64/sonic.git synced 2026-06-21 00:46:43 +08:00
sonic/ast
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
encode.go fix:(ast) quote string when node.MarshalJSON() (#155) 2021-12-15 19:20:18 +08:00
encode_test.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
iterator.go feat:(ast) support sorting node keys (#164) 2021-12-28 20:29:09 +08:00
iterator_test.go feat:(ast) support sorting node keys (#164) 2021-12-28 20:29:09 +08:00
node.go feat:(ast) support sorting node keys (#164) 2021-12-28 20:29:09 +08:00
node_test.go feat:(ast) support sorting node keys (#164) 2021-12-28 20:29:09 +08:00
parser.go support JSON validate (#189) 2022-02-21 16:35:53 +08:00
parser_test.go fix: relocate stack pointers (#156) 2021-12-20 16:19:12 +08:00
search.go feat:(ast) support sorting node keys (#164) 2021-12-28 20:29:09 +08:00
search_test.go fix: relocate stack pointers (#156) 2021-12-20 16:19:12 +08:00
sort.go feat:(ast) support sorting node keys (#164) 2021-12-28 20:29:09 +08:00
stubs.go feat(ast): Node supports MarshalJson() (#84) 2021-08-27 18:28:56 +08:00
testdata_test.go chore: make it open-source 2021-05-28 23:58:58 +08:00
utils.go feat: optimaze ast.Node API as container of generic values (#150) 2021-12-09 15:43:51 +08:00