Hi Erik Not sure whether I can call this as an issue or not. but I am facing an issue using custom json conversion
Sample Code: xquery version "1.0-ml"; import module namespace json="http://marklogic.com/xdmp/json" at "/MarkLogic/json/json.xqy"; let $x := <employee><code>01</code><label>gnana <span>prakash</span> bodireddy</label></employee> let $config := json:config("custom") , $cx := map:put( $config, "whitespace", "ignore" ) let $config-full := json:config("full") , $cx := map:put( $config, "whitespace", "ignore" ) return (json:transform-to-json($x,$config), json:transform-to-json($x,$config-full)) Response: {"employee":{"code":"01", "label":{"_value":" bodireddy", "span":"prakash"}}} {"employee":{"_children":[{"code":{"_children":["01"]}},{"label":{"_children":["gnana ",{"span":{"_children":["prakash"]}}," bodireddy"]}}]}} In the above response, when used "custom" the leading text value "gnana" is missing. How can we get the text? Note: I am trying to do the json converstion on node with highlighting (with span as an element) Thanks and Regards, Gnanaprakash Bodireddy 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
