Re: [MarkLogic Dev General] ML8 Json

2015-03-23 Thread Paul Williams
ns.com<mailto:paul.willi...@flatironssolutions.com> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig Sent: Monday, March 23, 2015 4:53 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] ML8 Json

Re: [MarkLogic Dev General] ML8 Json

2015-03-23 Thread Justin Makeig
Paul, You're constructing XML and trying to insert an object-node child. That's not allowed in MarkLogic 8. Previously xdmp:to-json returned a string, as there was no object-node type. In MarkLogic 8 we introduced new node types to represent JSON: object-node, array-node, null-node, boolean-node

Re: [MarkLogic Dev General] ML8 Json

2015-03-23 Thread Paul Hoehne
Discussion mailto:general@developer.marklogic.com>> Date: Monday, March 23, 2015 at 5:45 PM To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Subject: [MarkLogic Dev General] ML8 Json In upgrading from ML6 to ML8 we have an issue in our application code where we are gener

[MarkLogic Dev General] ML8 Json

2015-03-23 Thread Paul Williams
In upgrading from ML6 to ML8 we have an issue in our application code where we are generating JSON for a client-side script. I know there has been a huge change in JSON support, but can anyone tell me exactly what is going on here? Sample code: xquery version "1.0-ml"; let $obj := http:/