title: Traversing a Json Node using Javascript in marklogic?
body: <p>I want to traverse a JSON Node which is like this (i.e./node.json)</p>
  
  <pre><code>{
      "One": {
          "Name": "One",
          "Country": "US"
      },
      "Two": {
          "State": "kentucky"
      },
      "Three": {
          "Element1": "value1",
          "Element2": "value2",
          "Element3": "value3",
          "Element4": "value4",
          so on ...
      }
  }
  </code></pre>
  
  <p><strong>Updated</strong>
  My Usecase : I tried to run a CORB job with below configurations </p>
  
  <p>Transform.xqy (Where I am keeping all the elements in an array)</p>
  
  <pre><code>var name = fn.tokenize(URI, ";");
  const node = cts.doc(name);
  var a= node.xpath("/One/*");
  var b= node.xpath("/Two/*");
  var c= node.xpath("/Three/*");
  fn.stringJoin([a, b, c,name], " , ")
  </code></pre>
  
  <p>When started running the CORB job to create CSV file for 1.3 M documents in my marklogic DB, it is a never ending story.</p>