Add getJsonContent method for better handling JSON response