From 5e0df7b77d517e1e5dec27c593b5693243db8ae6 Mon Sep 17 00:00:00 2001 From: Guilherme Andrade Date: Mon, 12 Oct 2015 14:56:11 +0100 Subject: [PATCH] Match jsx:json_term() / jsx_to_term:json_value() specs for empty object. --- src/jsx.erl | 4 ++-- src/jsx_to_term.erl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jsx.erl b/src/jsx.erl index 0b55b2e..acdf420 100644 --- a/src/jsx.erl +++ b/src/jsx.erl @@ -44,7 +44,7 @@ -ifndef(maps_support). --type json_term() :: [{binary() | atom(), json_term()}] | [{}] +-type json_term() :: [{binary() | atom(), json_term()}] | [{},...] | [json_term()] | [] | true | false | null | integer() | float() @@ -53,7 +53,7 @@ -endif. -ifdef(maps_support). --type json_term() :: [{binary() | atom(), json_term()}] | [{}] +-type json_term() :: [{binary() | atom(), json_term()}] | [{},...] | [json_term()] | [] | map() | true | false | null diff --git a/src/jsx_to_term.erl b/src/jsx_to_term.erl index ec9ab89..aa05264 100644 --- a/src/jsx_to_term.erl +++ b/src/jsx_to_term.erl @@ -46,7 +46,7 @@ -ifndef(maps_support). -type json_value() :: list(json_value()) - | list({binary() | atom(), json_value()}) + | list({binary() | atom(), json_value()}) | [{},...] | true | false | null @@ -57,7 +57,7 @@ -ifdef(maps_support). -type json_value() :: list(json_value()) - | list({binary() | atom(), json_value()}) + | list({binary() | atom(), json_value()}) | [{},...] | map() | true | false