Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
582 views
in Q2A Core by
Recently I am thinking to output json file to my app which is using the q2a. I found there is a file named qa-feed.php, which will output xml files.

Is there a way to adapt the qa-feed.php file to output json format?

1 Answer

+1 vote
by
It's not clear exactly what you are trying to output, but I'm not sure the qa-feed file is what you want.

The data for the feeds is taken from other functions and the qa-feed file mainly handles the XML side of things.

You might find this page useful, which lists functions you can use to get various data: http://docs.question2answer.org/code/functions/

Then you should just need to call json_encode() on that to get your JSON to output.
...