Packages
phoenix_gen_tools
0.2.0
PhoenixGen Tools provides tools to assist in Phoenix Framework projects, both at runtime and during development.
Current section
Files
Jump to
Current section
Files
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