Fix type json_term/0 to match reality.
This commit is contained in:
parent
e50af6e109
commit
b623efe2e8
1 changed files with 4 additions and 3 deletions
|
@ -42,8 +42,9 @@
|
|||
-endif.
|
||||
|
||||
|
||||
-type json_term() :: list({binary(), json_term()})
|
||||
| list(json_term())
|
||||
-type json_term()
|
||||
:: [{binary() | atom(), json_term()}]
|
||||
| [json_term()]
|
||||
| true
|
||||
| false
|
||||
| null
|
||||
|
@ -162,4 +163,4 @@ parser(Handler, State, Config) -> jsx_parser:parser(Handler, State, Config).
|
|||
resume(Term, {decoder, State, Handler, Acc, Stack}, Config) ->
|
||||
jsx_decoder:resume(Term, State, Handler, Acc, Stack, jsx_config:parse_config(Config));
|
||||
resume(Term, {parser, State, Handler, Stack}, Config) ->
|
||||
jsx_parser:resume(Term, State, Handler, Stack, jsx_config:parse_config(Config)).
|
||||
jsx_parser:resume(Term, State, Handler, Stack, jsx_config:parse_config(Config)).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue