Improve template json

Json templater extended and modified. Now allows definition of data types in template.