Adding json id attribute to template