Read template fields from json file instead