Added decoding of json response to elixir data structure.