I’m hoping to use Brackit as an embeddable JSONiq engine for use in a Java app. My use case involves receiving JSON as a string from another program, processing it with XQuery/JSONiq, then returning the result as a JSON string back to the original program.
How can I set these received JSON strings as the input to my XQuery/JSONiq code? None of the examples seem to use this pattern (the examples I have seen so far seem to either include input directly in the XQuery code or use the json-doc() function to read it from the file system). Hope that makes sense.
I am using Brackit 0.3-SNAPSHOT
Thanks,
Ross