Correctly renders the JSON response