jsone.md 2.4 KB

Module jsone

JSON decoding/encoding module.

Data Types

json_array()


json_array() = [json_value()]

json_boolean()


json_boolean() = boolean()

json_number()


json_number() = number()

json_object()


json_object() = {object, json_object_members()}

json_object_members()


json_object_members() = [{json_string(), json_value()}]

json_string()


json_string() = binary()

json_value()


json_value() = json_number() | json_string() | json_array() | json_object() | json_boolean() | null

Function Index

decode/1JSONバイナリをデコードする.
encode/1JSON値をバイナリ形式にエンコードする.

Function Details

decode/1


decode(Json::binary()) -> {json_value(), RestJson::binary()}


JSONバイナリをデコードする.

デコードに失敗した場合はエラーが送出される

encode/1


encode(JsonValue::json_value()) -> binary()


JSON値をバイナリ形式にエンコードする.

エンコードに失敗した場合はエラーが送出される