Recursive JSON object display with different child name
<p>I am currently learning AngularJS, and I am trying to achieve a JSON complex object displayer. I've read quite a lot about this kind of question in <a href="https://stackoverflow.com/questions/14430655/recursion-in-angular-directives">this question</a> or even <a href="https://stackoverflow.com/questions/19125551/angularjs-understanding-a-recursive-directive">here</a>, and there are elements of response, but those aren't quite helping me in my case.</p>

<p>The topic mentionned before showed me some good solutions when <strong>children always bear the same name</strong> (e.g, the child element is always called "Children" for example 1). But how can we deal with different names ? I searched for a way to get the children objects regardless of it's name, but didn't find it.</p>

<p>My JSON object looks like this:</p>

<pre><code>{
  name: "Something",
  _id: "some ID",
  Firstchildren: [
       {
        name: "Children1"
        type: "Child"
        SecondChildren: [
          {
             name: "ChildrenOfDoom",
             type: "Doom"
             ThirdChildren: [
                {
                 name: "BoredOne",
                 type: "Bored
                },
                {
                 name: "AnotherOne",
                 type: "Boring"
                }
             ]
          },
       &lt;another SecondChildren&gt;
    ]}
</code></pre>

<p>Basically my question is the following: is there a way to deal with complex JSON object recursively regardless of the children's name ? So, in our example, to end up with a display like:</p>

<pre><code>Something
     Child1 : Child
          ChildrenOfDoom : Doom
              BoredOne : Bored
              AnotherOne : Boring
          ChildrenOfChaos : Chaotic
              SomeOne : Random
              ...
          ...
     Child2 : Child
          ...
</code></pre>

<p>And, of course, if there are such ways, I would like to find out about it, whether it is complete solution, advices, documentation or useful tutorials.</p>

<p>Thank you in advance !</p>

<p>PS: If possible, avoid the "possible duplicate of " if they are already linked in the original question, I already went through.
PPS: Despite the first above, I am not closed to other related questions either, as long as they are not already quoted here.</p>