Why do the templates need a JSON string of the model?