{
"amount": {
"value": "",
"currency": "USD"
}
}
如何检查“value”属性是否存在且值是否为空?
getAmount().getValue() != null && getAmount().getValue() == null
???
答案 0 :(得分:0)
<xsl:template match="@created_at">
<xsl:attribute name="created_at">
<xsl:value-of select="substring(translate(., 'T', ' '), 1, 19)" />
</xsl:attribute>
</xsl:template>
注意:import org.json.simple.JSONObject;