Hi Charles All the documents I ingested are XML's not JSON. But as our application is consuming JSON I have to give the response in JSON which is why I explored XML to JSON Api.
To summarize, 1. I have a schema defined for just to ensure JSON is handling data types 2. I have a Schematron defined for validating the content (as I have a requirement for conditional validation I went ahead with Schematron) 3. I ingested XML documents with namespace referring to the Schema mentioned in step 1 4. Used XML to JONS API to get response in JSON with defined data-types. Thanks and Regards, Gnanaprakash Bodireddy Date: Fri, 21 Dec 2012 09:58:37 -0800 From: Charles Greer <[email protected]> Subject: Re: [MarkLogic Dev General] MarkLogic 6 XML to JSON DataTypes To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Gnanaprakash, We're puzzled a little as it seems that this should not have happened with the way the REST API is designed. How did you ingest the documents? We're collectively of the opinion that if you insert {"id":1} That it should come back out of the database the same way, not as a string. If that's not the case then it might be a bug. Charles This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
