Hi Andy,You can serialize the map by specifying the 'xquery' format as option:map {"records": ["Huber", "Sepp", "Hauptstraße 13", "93547 Hintertupfing"],"names": ["Name", "First_Name", "Address", "City"]}=> csv:serialize(map { 'format': 'xquery', 'header': true() })The result:Name,First_Name,Address,CityHuber,Sepp,Hauptstraße 13,93547 HintertupfingCheers,ChristianOn Tue, May 29, 2018 at 4:43 PM, Andy Bunce <bunce.andy@gmail.com> wrote:Thexquery
format of CSV records as a sequence of arrays [1] is very useful when parsingbut there seems to be no easy way to serialize from this format. Is this correct?map {"records": ["Huber", "Sepp", "Hauptstraße 13", "93547 Hintertupfing"],"names": ["Name", "First_Name", "Address", "City"]}=>csv:serialize()[SENR0001] Items of type map(xs:string, array(xs:string)) cannot be serialized.... would be nice if it could./Andy