I am developing a PHP restful API which is returning a JSON response. This is currently for native mobile app consumption (iOS/Android).

My question, is it possible to use the same restful API for website consumption? or do I need to support HTML response from the restful API as well as JSON? How do you get a JSON response from a web service to display as a webpage? or do I need to implement output formatters as part of the framework to respond as HTML when required?

I have tried to search for answers to this question but I couldn't find any useful answer.