tighten `json_term' type

fixes #50
This commit is contained in:
alisdair sullivan 2014-02-10 20:34:20 +00:00
parent e1599574ff
commit 5868430718

View file

@ -41,16 +41,11 @@
-endif. -endif.
-type json_term() -type json_term() :: [{binary() | atom(), json_term()}] | [{}]
:: [{binary() | atom(), json_term()}] | [json_term()] | []
| [json_term()] | true | false | null
| true | integer() | float()
| false | binary() | atom().
| null
| integer()
| float()
| binary()
| atom().
-type json_text() :: binary(). -type json_text() :: binary().