Re: [MarkLogic Dev General] Json file

2017-01-10 Thread Kapoor, Pragya
;value":"fsddd sdgsdsdsdsdsdsdsdsdsdsd", "type":"text"},{"name":"Period", "value":"aertw hegheh eheheh ghhehe", "type":"text"}]} Please let me know, if I am missing somethin

Re: [MarkLogic Dev General] Json file

2017-01-09 Thread DK Singh
/abc.xml", "action":"add", >>> "metadata":[{"name":"XYZ", "value":"fsddd >>> sdgsdsdsdsdsdsdsdsdsdsd", "type":"text"},{"name":"Period", >

Re: [MarkLogic Dev General] Json file

2017-01-09 Thread DK Singh
, "value":"fsddd >> sdgsdsdsdsdsdsdsdsdsdsd", "type":"text"},{"name":"Period", >> "value":"aertw hegheh eheheh ghhehe", "type":"text"}]} >> >>

Re: [MarkLogic Dev General] Json file

2017-01-09 Thread DK Singh
ot;:"Period", "value":"aertw > hegheh eheheh ghhehe", "type":"text"}]} > > Please let me know, if I am missing something. I am using MarkLogic 7 > > > Thanks > > Pragya > -- > *From:* general-bou

Re: [MarkLogic Dev General] Json file

2017-01-09 Thread Kapoor, Pragya
quot;aertw hegheh eheheh ghhehe", "type":"text"}]} Please let me know, if I am missing something. I am using MarkLogic 7 Thanks Pragya From: general-boun...@developer.marklogic.com on behalf of David Lee Sent: Tuesday, Jan

Re: [MarkLogic Dev General] Json file

2017-01-09 Thread Kapoor, Pragya
Thanks David, this works for me. From: general-boun...@developer.marklogic.com on behalf of David Lee Sent: Tuesday, January 3, 2017 6:39:28 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Json file In v7 transform-to-json returns a

Re: [MarkLogic Dev General] Json file

2017-01-03 Thread David Lee
; on behalf of DK Singh mailto:dharam.m...@gmail.com>> Sent: Monday, January 2, 2017 1:06:24 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Json file Hi Pragya, You can try out the below mentioned code: import module namespace json = "http://marklogic.com/xdmp/json

Re: [MarkLogic Dev General] Json file

2017-01-03 Thread DK Singh
) > let $_ := map:put( $config, "array-element-names", "metadata" ) > return $config > > let $json := json:transform-to-json($xml,$custom) > > return > > ( > > xdmp:save(concat('C:\test\', $uri), $json) > > ) > > Thanks > Prag

Re: [MarkLogic Dev General] Json file

2017-01-03 Thread Kapoor, Pragya
uot;, "metadata" ) return $config let $json := json:transform-to-json($xml,$custom) return ( xdmp:save(concat('C:\test\', $uri), $json) ) Thanks Pragya From: general-boun...@developer.marklogic.com on behalf of DK Singh Se

Re: [MarkLogic Dev General] Json file

2017-01-01 Thread DK Singh
Hi Pragya, You can try out the below mentioned code: import module namespace json = "http://marklogic.com/xdmp/json"; at "/MarkLogic/json/json.xqy"; for $xmls in fn:collection('MarcVideo')[1 to 10] let $xmls1 := xdmp:quote($xmls) let $xmls2 := xdmp:unquote($xmls1) let $uri := base-uri($xmls) let

[MarkLogic Dev General] Json file

2017-01-01 Thread Kapoor, Pragya
Hi, Requirement: 1. Convert xmls stored in marklogic db to json then save them to file system. 2. Store in-memory json in ML DB How can we achieve the same? Thanks Pragya "This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may conta