templates.jsonTemplate.ftl.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toolchain-fixtures Show documentation
Show all versions of toolchain-fixtures Show documentation
Extensions on existing fixtures to aid in automated testing
<#function output item>
<#if item?is_hash>
<#assign obj = "">
<#assign obj += "{">
<#list item as k, v>
<#assign obj += '"${k}"' + ":" + output(v) + ",">
#list>
<#assign obj = obj?remove_ending(",")>
<#assign obj += "}">
<#elseif item?is_sequence>
<#assign obj = "">
<#assign obj += "[">
<#list item as v>
<#assign obj += output(v) + ",">
#list>
<#assign obj = obj?remove_ending(",")>
<#assign obj += "]">
<#else>
<#assign obj = "">
<#if item?is_string>
<#assign obj = '"' + item + '"'>
<#else>
<#assign obj = item?c>
#if>
#if>
<#return obj>
#function>
${output(testdata)}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy