Question: How to render JSON instead of HTML and save the results to a JSON file

I do not believe there is a workaround for this when using single file TiddlyWiki.

Correct. TiddlyWikis hosted at TiddlyHost allow fetching data via JSON and this is a feature added by means of server side code.