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.
-type json_term()
:: [{binary() | atom(), json_term()}]
| [json_term()]
| true
| false
| null
| integer()
| float()
| binary()
| atom().
-type json_term() :: [{binary() | atom(), json_term()}] | [{}]
| [json_term()] | []
| true | false | null
| integer() | float()
| binary() | atom().
-type json_text() :: binary().