Packages

Native gleam json parser/generator with jsonpath querying

Current section

Files

Jump to
simplejson src simplejson@jsonvalue.erl
Raw

src/simplejson@jsonvalue.erl

-module(simplejson@jsonvalue).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([json_value/0, parse_error/0]).
-type json_value() :: {json_string, binary()} |
{json_number,
gleam@option:option(integer()),
gleam@option:option(float()),
gleam@option:option(binary())} |
{json_bool, boolean()} |
json_null |
{json_array, list(json_value())} |
{json_object, gleam@dict:dict(binary(), json_value())}.
-type parse_error() :: {unexpected_character, binary(), binary(), integer()} |
unknown |
unexpected_end |
{invalid_escape_character, binary(), binary(), integer()} |
{invalid_character, binary(), binary(), integer()} |
{invalid_hex, binary(), binary(), integer()} |
{invalid_number, binary(), binary(), integer()}.