Document templates and JSON work