title: how to find all leaves of group with javascript and json
body: <p>I want to list all leaves ids where group name is i.e. "group110"
  So, output for this example is 014, 288, 223 and 244. </p>
  
  <p>Here is content of my JSON file:</p>
  
  <pre><code>{
   "name": "visualization",
   "children": [
          {
           "name": "group100",
           "children": [
                  {
                   "name": "group110",
                   "children": [
                          {
                           "name": "group111",
                           "children": [
                                          {"id":"014","link":"-","name":" Animals/70","decade":"-"}
                                  ]
                          },
                          {
                           "name": "group112",
                           "children": [
                                          {"id":"288","link":"-","name":"Heidelberg platen press","decade":"1960s"}
                                  ]
                          },
                          {
                           "name": "group113",
                           "children": [
                                          {"id":"223","link":"-","name":"Camera Praktica Super TL – shutter release","decade":"1960s"},
                                          {"id":"244","link":"-","name":"Mechanical calculator, Facit","decade":"1950s"}
                                  ]
                          }
                          ]
                  },
  </code></pre>