some thoughts on handling context invocation via json template.