I want to fetch latest Drupal 7 posts in json format with the file extension of '.json'
I have tried multiple methods to GET data in JSON format using PHP but doing so keeps the file name as .php, I am unable to create the '.json' file.
How to create dynamic JSON file like this?: http://json-schema.org/example/calendar.json
Can someone please share some inputs or help with some useful resource which I can refer to in order to achieve this.
DUPLICATE - This may be a duplicate question but there is no answer available for this. The link provided by 'Quentin' does not have an accepted answer and also it does not have the answer to my question.