Template interface for self referencing json templates