You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,19 @@ Multiple JSON parser types are exposed that accomodate different maximum length
22
22
> Notation explainer: a _token_ is a distinct JSON element, either `{``}``[``]``,``:` , strings, numbers of literals (`false`, `true`, `null`)
23
23
> Notation explainer: a _value_ is an object, array, string, number of literal
24
24
25
-
-`JSON512b::JSON` a parser that can handle up to 512 bytes of JSON, up to 64 _tokens_ and 32 _values_
26
-
-`JSON1kb::JSON` a parser that can handle up to 1kb of JSON, up to 128 _tokens_ and 64 _values_
27
-
-`JSON2kb::JSON` a parser that can handle up to 2kb bytes of JSON, up to 256 _tokens_ and 128 _values_
28
-
-`JSON4kb::JSON` a parser that can handle up to 4kb bytes of JSON, up to 512 _tokens_ and 256 _values_
29
-
-`JSON8kb::JSON` a parser that can handle up to 8kb bytes of JSON, up to 1,024 _tokens_ and 512 _values_
30
-
-`JSON16kb::JSON` a parser that can handle up to 16kb bytes of JSON, up to 2,048 _tokens_ and 1,024 _values_
25
+
-`JSON512b` a parser that can handle up to 512 bytes of JSON, up to 64 _tokens_ and 32 _values_
26
+
-`JSON1kb` a parser that can handle up to 1kb of JSON, up to 128 _tokens_ and 64 _values_
27
+
-`JSON2kb` a parser that can handle up to 2kb bytes of JSON, up to 256 _tokens_ and 128 _values_
28
+
-`JSON4kb` a parser that can handle up to 4kb bytes of JSON, up to 512 _tokens_ and 256 _values_
29
+
-`JSON8kb` a parser that can handle up to 8kb bytes of JSON, up to 1,024 _tokens_ and 512 _values_
30
+
-`JSON16kb` a parser that can handle up to 16kb bytes of JSON, up to 2,048 _tokens_ and 1,024 _values_
31
31
32
32
The maximum length of keys in the JSON blob is _62 bytes_. All of these parameters are configurable, see [Advanced usage](#advanced-usage) for more info.
33
33
34
34
## Usage
35
35
36
36
```
37
-
use crate::json_parser::1kbJSON::JSON;
37
+
use crate::json_parser::JSON1kb;
38
38
use crate::json_parser::JSONLiteral;
39
39
/*
40
40
example schema. In this example we require every field to exist except "dlc_enabled", which is optional.
0 commit comments