Bolty.ResponseEncoder.Json.Jason
(Bolty v0.0.10)
Copy Markdown
A default implementation for Jason encoding library.
More info about Jason: https://hex.pm/packages/jason
Allow this usage:
conn = Bolty.conn()
{:ok, res} = Bolty.query(conn, "MATCH (t:TestNode) RETURN t")
Jason.encode!(res)Default implementation can be overriden by providing your own implementation.
More info about implementation: https://hexdocs.pm/jason/readme.html#differences-to-poison
Note:
In order to benefit from Bolty.ResponseEncoder implementation, use
Bolty.ResponseEncoder.Json.encode and pass the result to the Jason
encoding functions.