thanks alot, this does the trick. Just out of curiousity: how would I specify more than one option for the json module: http://localhost:8984/factbook/factbook.xml?method=json&json=format=jsonml&j... doesn't make sense syntactically right? greetings Martin On 29.04.2014 11:15, Christian Grün wrote:
Hi Martin,
I have added the following example..
http://localhost:8984/factbook/factbook.xml?method=json&json=format=jsonml
in our Wiki:
http://docs.basex.org/wiki/REST#GET_Requests
Hope this helps, Christian
On Tue, Apr 29, 2014 at 11:03 AM, Martin Reckziegel <reckziegel@informatik.uni-leipzig.de <mailto:reckziegel@informatik.uni-leipzig.de>> wrote:
Hello all,
i'm trying to get the result of a REST GET query as json. Setting just the GET parameter 'method=json' doesn't work since i don't have a <json> root node. How do I specify the JSON Module options (http://docs.basex.org/wiki/JSON_Module) as GET parameters? The parameter 'format' seems to be reserved by some other module since it only allows 'yes' or 'no' as value. I want to set format=jsonml since then I can export any xml result as json. Is this possible with a GET request?
thanks in advance Martin