I need to flatten some JSON data so that I can send it in CSV format to some clients. I'm nearly there...Using the aggregation framework in MongoDB, so far, I have managed to get it to output this for each customer:I need to flatten some JSON data so that I can