I am working learning the Javascript API for MarkLogic.
I do a query:
cts.search(
cts.andQuery(
[cts.wordQuery("abc"), cts.collectionQuery(["Strings"])]
)
);
And get XML. I know how to convert this XML to JSON in XQuery, but how do I do it in Node? I can't seem to find it in the documentation.