Re: [basex-talk] items of type map(*) cannot be serialized

2021-11-10 Thread Jonathan Robie
Perfect - thanks! Jonathan On Wed, Nov 10, 2021 at 1:41 PM Martin Honnen wrote: > On 10.11.2021 19:34, Jonathan Robie wrote: > > I want to serialize JSON. Consider the following function: > > > > declare function local:index() > > { > > array{ $levinsohn/levinsohn/feature/header ! map

Re: [basex-talk] items of type map(*) cannot be serialized

2021-11-10 Thread Martin Honnen
On 10.11.2021 19:34, Jonathan Robie wrote: I want to serialize JSON.  Consider the following function: declare function local:index() {  array{ $levinsohn/levinsohn/feature/header ! map {./name : ./description ! string() } } }; When I run that, I get output that looks like this: [map {  

[basex-talk] items of type map(*) cannot be serialized

2021-11-10 Thread Jonathan Robie
I want to serialize JSON. Consider the following function: declare function local:index() { array{ $levinsohn/levinsohn/feature/header ! map {./name : ./description ! string() } } }; When I run that, I get output that looks like this: [map { "Ambiguous": "Marked but ambiguous constituent