Packages

PhoenixGen Tools provides tools to assist in Phoenix Framework projects, both at runtime and during development.

Current section

Files

Jump to
phoenix_gen_tools lib json_http.ex
Raw

lib/json_http.ex

defmodule JsonHttp do
use HTTPoison.Base
@moduledoc """
Provide a HTTPoison module that automatically parses for a JSON response
"""
def process_response_body(body) do
body
|> Jason.decode!
end
end