I have this JSON reply from an API below

My goal is to create a list view wherein the environments will be flattened into one array object then the details of each are concatenated like the one below.

My question is, is this possible in form script? Or is this better done outside of mongoose?