title: Iterate through a json with hierarchical children and add a key value pair
body: <p>I want to convert the existing data to other. Please find below the existing code and the expected code.</p>
  
  <p>Existing:</p>
  
  <p>{
      "title": "title1",
      "child": [
          {
          "title": "Header",
          "child": 
          [
              {
              "title": "test",
              "child": 
              [
                             {
                   "title": "testchild",</p>
  
  <pre><code>            },
             {
                "title": "Descriptionchild",
              }
               ]
  
              },
              {
                  "title": "Description",
              }
          ]
      }
  ]
  </code></pre>
  
  <p>}</p>
  
  <p>Expected:</p>
  
  <p>{
      "title": "title1",
      "customId": "title1-xx"
      "child": [
          {
              "title": "Header",
              "customId": "Header1-xx",
              "child": 
              [
                  {
                      "title": "test",
                      "customId": "test1-xx",
                      "child": 
                          [
                              {
                                  "title": "testchild",
                                  "customId": "testchild1-xx"</p>
  
  <pre><code>                        },
                          {
                              "title": "Descriptionchild",
                              "customId": "Descriptionchild1-xx"
                          }
                      ]
  
              },
              {
                  "title": "Description",
                  "customId": "Description1-xx"
              }
          ]
      }
  ]
  </code></pre>
  
  <p>}</p>