Allow for Template that Publishes to a JSON file instead of HTML

It would be useful to have the ability to create a Page Template that published content to a JSON file (like based on a query of content based on Tag, Category, or other criteria.  This could then be used in client side script to add Dynamic behaviors/features to a published site.