-
☆ A M B ☆
- 3,141 Posts
You can do that with a plugin OnPageNotFound that fetches the right resource and formats it. I believe that's how InstantAPI works, which will return it as json for you:
https://modx.com/extras/package/instantapi
Using htaccess to route it directly to an existing endpoint, rather than relying on the page not found event, might be a tad more performant.