title: Group json data by a property - vue.js
body: <p>I have a JSON I would like to re-arrange my data, so that I can group all items by category name. Here is my data.</p>
  <pre><code>[
    {
      &quot;id&quot;:317,
      &quot;name&quot;:&quot;Ingram's Camphor Cream&quot;,
      &quot;slug&quot;:null,
      &quot;product_category_id&quot;:15,
      &quot;industry_id&quot;:2,
      &quot;deleted_at&quot;:null,
      &quot;category&quot;:{
        &quot;id&quot;:15,
        &quot;name&quot;:&quot;Skincare&quot;,
        &quot;slug&quot;:null,
        &quot;industry_id&quot;:2,
        &quot;deleted_at&quot;:null,
        &quot;sku_id&quot;:3,
        &quot;is_active&quot;:1
      },
    },
    {
      &quot;id&quot;:323,
      &quot;name&quot;:&quot;Zimgold&quot;,
      &quot;slug&quot;:null,
      &quot;product_category_id&quot;:2,
      &quot;industry_id&quot;:2,
      &quot;category&quot;:{
        &quot;id&quot;:2,
        &quot;name&quot;:&quot;Cooking Oils&quot;,
        &quot;slug&quot;:null,
        &quot;industry_id&quot;:2,
        &quot;sku_id&quot;:2,
        &quot;is_active&quot;:1
      }
    }
  ]
  </code></pre>
  <p>I would like to have a result like so:</p>
  <pre><code>[
     'Skincare': [ {}],
     'Cooking Oils': [{}]
  ]
  </code></pre>
  <p>Thank you in advance. I would really appreciate your help.</p>