Adds handlebars templating for json protocol