title: Loop through a nested JSON object get every propery
body: <p>I’m looking for a solution to loop through a nested JSON object in pure JS. Indeed I’d like to console.log every item and each of its properties.</p>
  <pre><code>const json_object = 
  {
      &quot;item1&quot;:{
          &quot;name&quot;: &quot;apple&quot;,
          &quot;value&quot;: 2,
      },
  
      &quot;item2&quot;:{
          &quot;name&quot;: &quot;pear&quot;,
          &quot;value&quot;: 4,
      }
  }
  
  for(let item in json_object){
      console.log(&quot;ITEM = &quot; + item);
  
      for(let property in json_object[item]){
          console.log(?); // Here is the issue
      }
  }
  </code></pre>