From b623efe2e8559b33f3a1a9591b9169f3f830e4b9 Mon Sep 17 00:00:00 2001 From: Joseph Crowe Date: Mon, 2 Sep 2013 08:54:10 +0100 Subject: [PATCH] Fix type json_term/0 to match reality. --- src/jsx.erl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jsx.erl b/src/jsx.erl index 52dae15..dbf072b 100644 --- a/src/jsx.erl +++ b/src/jsx.erl @@ -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)). \ No newline at end of file + jsx_parser:resume(Term, State, Handler, Stack, jsx_config:parse_config(Config)).