{
    <% if (hasOwnProperty("friendlyName")) { %>
    "friendlyName": "<%=friendlyName%>",
    <% }%>
    <% if (hasOwnProperty("injectableName")) { %>
    "injectableName": "<%=injectableName%>",
    <% }%>
    <% if (hasOwnProperty("implementsTask")) { %>
    "implementsTask" : "<%=implementsTask%>",
    <% }%>
    <% if (hasOwnProperty("options")) { %>
    "options": <%- JSON.stringify(options) %>,
    <% } else  {%>
    "options": {},
    <% } %>
    <% if (hasOwnProperty("properties")) { %>
    "properties": <%- JSON.stringify(properties) %>
    <% } else  {%>
    "properties": {}
    <% } %>

}

{
    <% if (hasOwnProperty("friendlyName")) { %>
    "friendlyName": "<%=friendlyName%>",
    <% }%>
    <% if (hasOwnProperty("injectableName")) { %>
    "injectableName": "<%=injectableName%>",
    <% }%>
    <% if (hasOwnProperty("implementsTask")) { %>
    "implementsTask" : "<%=implementsTask%>",
    <% }%>
    <% if (hasOwnProperty("schemaRef")) { %>
    "schemaRef" : "<%=schemaRef%>",
    <% }%>
    <% if (hasOwnProperty("options")) { %>
    "options": <%- JSON.stringify(options) %>,
    <% } else  {%>
    "options": {},
    <% } %>
    <% if (hasOwnProperty("properties")) { %>
    "properties": <%- JSON.stringify(properties) %>
    <% } else  {%>
    "properties": {}
    <% } %>

}

Address review comment to add schemaRef
Address review comment to add schemaRef
