KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have read the RequestHandler part in cookbook . There are isXml() , isRss() , etc. But there's no isJson() . Any other way to check whether a request is JSON? So when the url is mysite.com/products/view/1.json it will give JSON data, but without .json it will give the HTML View. Thanks
Tags (comma-separated)
Save Edits
Cancel