trying rendering json after template