Current section
Files
Jump to
Current section
Files
src/simplejson@jsonvalue.erl
-module(simplejson@jsonvalue).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/simplejson/jsonvalue.gleam").
-export_type([json_value/0, parse_error/0, json_path_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, gleam@dict:dict(integer(), 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()} |
{nesting_depth, integer()} |
{invalid_int, binary()} |
{invalid_float, binary()}.
-type json_path_error() :: {parse_error, binary()} |
missing_root |
{index_out_of_range, integer()} |
no_match |
function_error |
comparison_error |
invalid_json_path |
path_not_found.