title: Transform JSON Object in AngularJs
body: <p>Is there is a way to transform this JSON Object using Angular? I need to transform the JSON object from this format:</p>
  
  <pre><code>    $scope.TestJson = {
          "filters": [
                  {
                      "dataPropertyID": "VoidType",
                      "label": "Homeless"
                  },
                  {
                      "dataPropertyID": "VoidType",
                      "label": "Mainstream"
                  },
                  {
                      "dataPropertyID": "PropertyType",
                      "label": "Flat"
                  },
                  {
                      "dataPropertyID": "PropertyType",
                      "label": "Cottage"
                  }
          ]
      }
  </code></pre>
  
  <p>To this format:</p>
  
  <pre><code>    $scope.NewTestJson = {
          "filters": [
                  {
                      "dataPropertyID": "VoidType",
                      "label":[ "Homeless","Mainstream"]
                  },
                  {
                      "dataPropertyID": "PropertyType",
                      "label":[ "Flat", "Cottage"]
                  }
          ]
      }
  </code></pre>