I had a question from someone on my team if it's possible to return a more simplified version JSON without child and attributes.
For example, compare Events JSON object: http://data.smartlitigator.com/EventTools/GetEventsTable?display=New+York+Law+Journal|returnType=JSON To this: http://data.smartlitigator.com/QuestV2/Search/?query=law&publication=§ion=&orgType=&elementType=&articleType=&practiceArea=&virtualPracticeArea=&subject=&industry=&source=lawcom&almStaff=&lawTopic=&fromDateTime=&toDateTime=&fromDate=1985-01-01&toDate=2015-11-07&start=1&end=10&sort=rank&direction=descending&returnType=falcon_json&callback= Events, simply contructed snippet: let $outputJSON:=("{"events":[", let $config := json:config("full"), $cx := map:put( $config, "whitespace", "ignore" ) return fn:string-join( for $doc at $counter in $search-this-partner/event order by $doc/EventStartDate/@date descending return xdmp:quote(json:transform-to-json($doc, $config)),","), "]}") Is it possible to specify which nodes and the format I want to convert, still using transform-to-json, or do I need to write a custom output myself?
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general