Module jsonpull_expect

These functions will read a value or error out immediately, with useful errorinfo applied on top.

Description

These functions will read a value or error out immediately, with useful errorinfo applied on top.

Function Index

null/1
boolean/1
string/1
iolist/1
existing_atom/1
number/1
integer/1
float/1
array/1
element/1
object/1
key/1

Function Details

null/1

null(JSON::binary()) -> {null, Rest::binary()}

boolean/1

boolean(JSON::binary()) -> {boolean, Rest::binary()}

string/1

string(JSON::binary()) -> {binary(), Rest::binary()}

iolist/1

iolist(JSON::binary()) -> {iolist(), Rest::binary()}

existing_atom/1

existing_atom(JSON::binary()) -> {atom(), Rest::binary()}

number/1

number(JSON::binary()) -> {binary(), Rest::binary()}

integer/1

integer(JSON::binary()) -> {integer(), Rest::binary()}

float/1

float(JSON::binary()) -> {float(), Rest::binary()}

array/1

array(JSON::binary()) -> {begin_array, Rest::binary()}

element/1

element(JSON::binary()) -> {element | end_array, Rest::binary()}

object/1

object(JSON::binary()) -> {begin_object, Rest::binary()}

key/1

key(JSON::binary()) -> {binary() | end_object, Rest::binary()}


Generated by EDoc