Reformat the code and reset the Response.json calls to use the method invocation rather than the property.