InfluxEx.JSONLibrary behaviour (influx_ex v0.3.1)

Behaviour for a JSON library that InfluxEx can use to encode and decode JSON payloads

Link to this section Summary

Types

t()

A module that implements this behaviour

Callbacks

Parse a JSON encoded string into an Elixir map

Encode an Elixir map into a JSON encoded string

Link to this section Types

@type t() :: module()

A module that implements this behaviour

Link to this section Callbacks

@callback decode(binary()) :: map()

Parse a JSON encoded string into an Elixir map

@callback encode(map()) :: binary()

Encode an Elixir map into a JSON encoded string