Module broen_serializer_json

An example serializer plugin that encodes and deodes broen requests and responses to and form the JSON format.

Description

An example serializer plugin that encodes and deodes broen requests and responses to and form the JSON format.

Function Index

deserialize/2Deserialize the JSON response into a broen response.
serialize/1Serialize the broen request into JSON.

Function Details

deserialize/2

deserialize(Raw::term(), X2::broen_core:content_type()) -> {ok, broen_core:broen_response()} | {error, invalid_content_type}

Deserialize the JSON response into a broen response

serialize/1

serialize(Request::broen_core:broen_request()) -> {term(), broen_core:content_type()}

Serialize the broen request into JSON


Generated by EDoc