I am trying to get all the values of json string as a single string. for example in xquery xml
let $x := <a> welcome to the world of <b> JSONiq </b></a>
return string($x)
will return welcome to the world of  JSONiq
what is the equvalent result of of following documents in JSONiq:
let $y := {"a":"welcome to the world of ","b":" JSONiq"}
return xxxx($y)
The result should be same welcome to the world of  JSONiq
If you know in javascript also it would be great. 
 
                        
First you need to get all values, either with
libjn:valuesor its definition, then you can usefn:string-jointo get a single string:So
or
This might also return "JSONiqwelcome to the world of ", since the object keys are unordered