issue #5 - json now inserted into template