Is there a way to transform the following JSON data structure
[{"categories":[{"id":"171","name":"Fashion"},{"id":"219","name":"Blog"}]}]
into this format?
[{"id":"171","name":"Fashion"},{"id":"219","name":"Blog"}]
This change is necessary for proper AngularJS data binding