title: Loop Through Object and get output into HTML
body: <p>I'm having some trouble understanding what bit of Javascript to use to loop through the below object to then output into HTML. The aim is to output the values from the object on to the page something like the HTML Output.</p>
  <pre><code>{
     &quot;lineItems&quot;:{
        &quot;physicalItems&quot;:[
           {
              &quot;id&quot;:70,
              &quot;productId&quot;:362,
              &quot;name&quot;:&quot;Sample Product 1 &quot;,
              &quot;sku&quot;:&quot;290909&quot;,
              &quot;quantity&quot;:1,
              &quot;isTaxable&quot;:true,
              &quot;discounts&quot;:[
  
              ],
              &quot;discountAmount&quot;:0,
              &quot;listPrice&quot;:130,
              &quot;salePrice&quot;:130,
              &quot;extendedListPrice&quot;:130,
              &quot;extendedSalePrice&quot;:130,
              &quot;extendedComparisonPrice&quot;:130,
              &quot;categories&quot;:[
  
              ],
              &quot;type&quot;:&quot;physical&quot;,
              &quot;variantId&quot;:593
           },
           {
              &quot;id&quot;:69,
              &quot;productId&quot;:383,
              &quot;name&quot;:&quot;Sample Product&quot;,
              &quot;sku&quot;:&quot;280910&quot;,
              &quot;quantity&quot;:1,
              &quot;isTaxable&quot;:true,
              &quot;discounts&quot;:[
  
              ],
              &quot;discountAmount&quot;:0,
              &quot;listPrice&quot;:350,
              &quot;salePrice&quot;:350,
              &quot;extendedListPrice&quot;:350,
              &quot;extendedSalePrice&quot;:350,
              &quot;extendedComparisonPrice&quot;:350,
              &quot;categories&quot;:[
  
              ],
              &quot;type&quot;:&quot;physical&quot;,
              &quot;variantId&quot;:685
           }
        ],
        &quot;digitalItems&quot;:[
  
        ],
        &quot;giftCertificates&quot;:[
  
        ]
     }
  }
  </code></pre>
  <p>HTML Output Required</p>
  <pre><code>PhysicalItems 1 - Sample Product 1
  SalePrice 1 - 130
  PhysicalItems 2 - Sample Product
  SalePrice 2 - 350
  </code></pre>
  <p>Any help on this would be appreciated. Thanks</p>