title: Create pipe for angular2 for iterating JSON to array
body: <p>I'm trying to use the following JSON data and convert it into an array, so I can run <code>*ngFor='let item of items'</code> and display data in terms of <code>item.name</code> etc...</p>
  
  <p>I tried the following:</p>
  
  <pre><code>var out = [];
  for(var key1 in object) {
      out[key1] = key1;
    for(var key2 in object[key1]) {
      for(var key3 in object[key2]) {
          out[key1][key2] = key3;
          }
    }
    console.log(out);
  }
  </code></pre>
  
  <p>But Im just getting the title as key and value.    </p>
  
  <pre><code>var object = {
    "compressorClutch": {
      "name": "compressorClutch",
      "param": "Y",
      "register": "64",
      "type": "b"
    },
    "batteryLive": {
      "name": "batteryLive",
      "param": "Y",
      "register": "53",
      "type": "b"
    },
    "batteryGround": {
      "name": "batteryGround",
      "param": "Y",
      "register": "85",
      "type": "b"
    },
    "mainsCable": {
      "name": "mainsCable",
      "param": "N",
      "register": "",
      "type": "b"
    },
    "kcb": {
      "name": "kcb",
      "param": "13",
      "register": "337",
      "type": "i"
    },
    "config": "LorA-F"
  }
  </code></pre>