[SOLVED] Map a specific json into a list which contains a list with every property plus a new property?
What i have is this: { "rates": { "2018-01-02": { "CAD": 1.5128, "HKD": 9.4283, }, "2018-01-03": { "CAD": 1.5047, "HKD": 9.3985, }, "2018-01-04": { "CAD": 1.5068, "HKD": 9.4188, }, } } And I want it to look like this: [ {"CAD": 1.5128, date: "2018-01-02"}, {"HKD": 9.4283, date: "2018-01-02"}, {"CAD": 1.5047, date: "2018-01-03"}, {"HKD": 9.3985, date: "2018-01-03"}, {"CAD": 1.5068, date: "2018-01-04"}, {"HKD": 9.4188, date: "2018-01-04"} ] I can't find a way to map this to look like above, because of the nesting. I can work without the date, if i get only the simple values of currencies because all i have is the "rates" and currencies object, without any date nested: const data = json.rates; {Object.entries(data).map(([key, value], index) => <tr key={index}> <td>{key}</td> <td>{value}</td> </tr>)} But for mu