Should json encode the templates