How convert json object to string?



How can I convert json object to string object in N1QL,
such as


So I can use “||” to concatenate the object to other string?


Not sure I understand what you are trying to do here, can you tell us more?
From a more generic perspective, conversion functions are all described here:


Hi, you can use the ENCODE_JSON() function:


obj can be any expression, including an object.


OK, It works.I tried this function,but got null, It might be some logic issue.