From 5868430718d99e092f5a60385dbdeae9077969e2 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Mon, 10 Feb 2014 20:34:20 +0000 Subject: [PATCH] tighten `json_term' type fixes #50 --- src/jsx.erl | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/jsx.erl b/src/jsx.erl index e33280f..953abb8 100644 --- a/src/jsx.erl +++ b/src/jsx.erl @@ -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().