HttpBuilder v0.4.1 HttpBuilder.Adapter.JSONParser behaviour View Source

A JSON encoder/decoder interface for HttpBuilder adapters.

Link to this section Summary

Callbacks

Takes JSON, and decodes it to a value

Takes a value, and encodes it into JSON

Link to this section Types

Link to this type decoded() View Source
decoded() ::
  nil |
  true |
  false |
  list() |
  float() |
  integer() |
  String.t() |
  map()
Link to this type encoded() View Source
encoded() :: term()

Link to this section Callbacks

Link to this callback decode!(value, options) View Source
decode!(value :: term(), options :: Keyword.t()) :: decoded()

Takes JSON, and decodes it to a value

Link to this callback encode!(value, options) View Source
encode!(value :: term(), options :: Keyword.t()) :: encoded()

Takes a value, and encodes it into JSON