render JSON data with a Swig template file (see http://paularmstrong.github.io/swig/)