JSON template working