[MarkLogic Dev General] Using Json Extensions

Will Thompson wthompson at jonesmcclure.com
Wed Mar 14 14:12:22 PDT 2012


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



From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] 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


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?


let $newsml := doc('http://www.bbc.co.uk/asset/b5c53243-e52f-e059-e040-850a02846523/highweb/domestic')
return xdmp:to-json(fn:data($newsml))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120314/04293532/attachment.html 

More information about the General mailing list