Added templatejson parsing