|
From: Misztur, C. <CMi...@ma...> - 2013-12-07 22:59:38
|
Hello. Is the below usage correct for arrays? xquery version "3.0"; import module namespace xqjson="http://xqilla.sourceforge.net/lib/xqjson"; xqjson:serialize-json ( <json type="object"> <pair name="to" type="array"> <item type="object"> <pair name="email" type="string">ch...@ch...</pair> <pair name="name" type="string">Chris</pair> </item> <item type="object"> <pair name="email" type="string">Jo...@jo...</pair> <pair name="name" type="string">Joe</pair> </item> </pair> </json> ) The output string contains an extra comma before the second 'email' key: {"to":[{"email":"ch...@ch...","name":"Chris"},{,"email":"Jo...@jo...","name":"Joe"}]} ________________________________ The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author. Please consider the environment before printing this e-mail |