Hi Udara, You can get an empty addresses array by following:
<jsonObject> <?xml-multiple addresses?> </jsonObject> Regards Senduran On Tue, Oct 4, 2016 at 12:09 PM, Udara Liyanage <[email protected]> wrote: > 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 > > -- *Senduran * Senior Software Engineer, WSO2, Inc.; http://wso2.com/ <http://wso2.com/> Mobile: +94 77 952 6548
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
