Fixing response retrieval from json object.