fixing json_response function on fake_ansible class