I would like to use the new "basic" JSON via REST. With basex 8.3.1 and 8.3.2beta, my_request&method=json&json=format=jsonml works fine, but my_request&method=json&json=format=basic returns : [FOJS0006] Element 'article' has invalid namespace: ''.
What's the problem ?
Best regards
Florent
Hi Florent,
When using a JSON format other than jsonml, your XML document to be output must comply with the rules specified in the particular format [1,2]:
xml-to-json(<string xmlns="http://www.w3.org/2005/xpath-functions">JSON</string>)
...versus...
xml-to-json(<string>JSON</string>)
[1] http://docs.basex.org/wiki/Json_Module [2] http://docs.basex.org/wiki/XQuery_3.1#fn:json-to-xml
On Mon, Nov 9, 2015 at 4:19 AM, Florent Gallaire fgallaire@gmail.com wrote:
I would like to use the new "basic" JSON via REST. With basex 8.3.1 and 8.3.2beta, my_request&method=json&json=format=jsonml works fine, but my_request&method=json&json=format=basic returns : [FOJS0006] Element 'article' has invalid namespace: ''.
What's the problem ?
Best regards
Florent
-- FLOSS Engineer & Lawyer
basex-talk@mailman.uni-konstanz.de