remove line by line debug
dump json string if it causes an error
comment on what needs to be done to accept * and $ etc in template line