Is this api response structure intentional, here to stay or customizable?

Agreed, there must be a better way for more complex data structures.

badges.filter(item => item.attributes.badge_category.data.attributes.identifier == g.attributes.identifier).map()