title: how to convert json map to array ? Angular
body: <p>I have the json like follow example, i would like to convert this json map to array for to be able to loop on it.</p>
  <p>I use the Object.keys method but I don't know how to have a key =&gt; value format for the whole json.
  I need to get the keys to make a table I know there is the pipe keyvalue but it's not what I need. or maybe I use it wrong</p>
  <p><strong>example json</strong></p>
  <pre><code>{
    &quot;pays&quot;: &quot;UK&quot;
    &quot;test&quot;: [
     [
      &quot;123456&quot;, // here i want key id
      &quot;blabla&quot;, // here i want key name 
      &quot;lorem ipsum&quot; // here i want key type
     ],
     [
      &quot;654321&quot;,
      &quot;ipsum&quot;,
      &quot;blabla&quot;
     ]
    ]
  }
  </code></pre>
  <p><strong>components.ts</strong></p>
  <pre><code>get() {
   this.myService.getUrl().subscribe(data =&gt; {
    this.myArray = Object.keys(data).map((key) =&gt; {
     return {
      id: key,
      name: data[key]
     }
    }):
   }
  </code></pre>