Hello,

I'm new in the XML databases world, evaluating BaseX and eXist-db for
a new project.

BaseX seems really clean and lightweight.

I would like to use it via the REST API and with a json output.

I test with the factbook.xml example database and the method parameter
set to "json" :
http://localhost:8984/rest/factbook?query=//city/name&wrap=yes
works fine but
http://localhost:8984/rest/factbook?query=//city/name&wrap=yes&method=json
returns [BXJS0002] JSON serializer: <json> expected as root node.

I don't understand why. I need json serialization whatever is the XML
returned by the query.

And I don't understand how to use the json options via the REST API.
http://docs.basex.org/wiki/JSON_Module
An example could be fine to help.

Best regards

Florent

-- 
FLOSS Engineer & Lawyer

Reply via email to