Hi,
I want to generate an empty json array ("addresses":[]) when addresses
count is zero. I tried below as [1] which resulted only in null.
<xsl:if test="count(addresses)=0">
<jsonObject>
<jsonArray></jsonArray>
</jsonObject>
</xsl:if>
[1] https://docs.wso2.com/display/ESB500/JSON+Support
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
Blog: http://udaraliyanage.wordpress.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev