Jon,

That's is how xdmp:to-json works for XML nodes.

http://docs.marklogic.com/5.0doc/docapp.xqy#search.xqy?query=to-json

-Will

From: [email protected] 
[mailto:[email protected]] On Behalf Of Jonathan Cook - 
FM&T
Sent: Wednesday, March 14, 2012 2:00 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Using Json Extensions


Hi,

Has anyone successfully got the json extensions working, I have been playing 
around with the below but you don't get json coming out, just a long string of 
the element values from the xml?

Thanks
Jon

let $newsml := 
doc('http://www.bbc.co.uk/asset/b5c53243-e52f-e059-e040-850a02846523/highweb/domestic')
return xdmp:to-json(fn:data($newsml))
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to