如何在JOLT转换中检查数组为空状态?

时间:2018-12-17 09:57:56

标签: transformation jolt

我有一个如下的输入json

<xsl:template match="/" mode="unroll">
    <xsl:apply-templates select="document('a.xml')/*"/>
</xsl:template>
<xsl:template match="@*|node()" mode="unroll">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
</xsl:template>

我要检查数组是否为空,

{
"test": [ ]
}

但是输出为“ null”。有人可以建议我帮忙。谢谢。

0 个答案:

没有答案