From 2585d11d3643f4b601dfdc54895f50245b4cf391 Mon Sep 17 00:00:00 2001 From: voluntas Date: Tue, 19 Nov 2024 13:31:54 +0900 Subject: [PATCH] =?UTF-8?q?mochijson2=20=E3=81=AF=E5=BF=98=E3=82=8C?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jesse_lib.erl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jesse_lib.erl b/src/jesse_lib.erl index f17fb6bb..8963f5e7 100644 --- a/src/jesse_lib.erl +++ b/src/jesse_lib.erl @@ -61,15 +61,12 @@ is_array(_) -> %% @doc A naive check if the given data is a json object. %% Supports two main formats of json representation: -%% 1) mochijson2 format (`{struct, proplist()}') -%% 2) jiffy format (`{proplist()}') -%% 3) jsx format (`[{binary() | atom(), any()}]') +%% 1) jiffy format (`{proplist()}') +%% 2) jsx format (`[{binary() | atom(), any()}]') %% Returns `true' if the given data is an object, otherwise `false' is returned. -spec is_json_object(Value :: any()) -> boolean(). is_json_object(Map) when is_map(Map) -> true; -is_json_object({struct, Value}) when is_list(Value) -> - true; is_json_object({Value}) when is_list(Value) -> true; %% handle `jsx' empty objects