Added isJson() method to Response class