I am looking to dynamically generate a nested JSON file within an Angular project. The data will be extracted from another JSON file, with two nested loops used to read the information. Below is an example of the initial JSON file structure:
{
"data": [
[
{"dat": "hello", "date": 4, "Nr": "11", "stat": "bye"},
{"dat": "hello", "date": 2, "Nr": "13", "stat": "bye"},
{"dat": "hello", "date": 4, "Nr": "11", "stat": "bye"},
{"dat": "hello", "date": 2, "Nr": "13", "stat": "bye"},
],
[
{"dat": "hello", "date": 4, "Nr": "11", "stat": "bye"},
{"dat": "hello", "date": 2, "Nr": "13", "stat": "bye"},
{"dat": "hello", "date": 4, "Nr": "11", "stat": "bye"},
{"dat": "hello", "date": 2, "Nr": "13", "stat": "bye"},
]
My goal now is to extract this data and store it in a JavaScript array or map within the TypeScript file.