This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
<test-case name="serialize-json-124" covers="fn-serialize json-output"> <description>sparse array</description> <created by="Debbie Lockett, Saxonica" on="2015-08-20"/> <dependency type="spec" value="XP31+ XQ31+"/> <test>let $r := serialize(map{1:"a",2:"b",4:"d",10:"j",7:"g"}, map{'method':'json'}) return translate($r,' 	

', '')</test> <result> <assert-string-value>{"1":"a","2":"b","4":"d","7":"g","10":"j"}</assert-string-value> </result> </test-case> This test incorrectly assumes that map entries are serialized in a particular order.
Quite right. I've adapted the result assertions so that the order of entries in the serialized output is not important. For completeness, serialize-json-113 has been similarly edited.