Make the Response::json() array conversion optional

Make the Response::json() function reflect the JSON structure of the
fetched data. By passing TRUE as argument you can force the response
to be converted to only associative arrays.