This would show only the files involved in the Pull Request in JSON format.
It would be nice to have a separate URI on the pullrequests resource to get the files in a pull request. The only work-around currently is to use the /patch URI and grep the text output to look for the lines beginning with diff and pick the file from the end of each such lines. It would be nice to have a separate URI or have additional qualifiers in the /patch URI to return the files preferably in JSON format.
I have written a script that uses this unreleased api, and it parses the /diff output to generate a list of files. It doesn't list deleted files though, only files that exist after the diff is applied.