I am new to angular. I want to convert this array to JSON data and want to use it in my component. I tried using some methods mentioned in stackoverflow, but they didn't work for me.
projects = [
{
name: 'Project1',
day1: 4.22,
day2: 3.56,
day3: 3,
day4: 1,
day5: 7.8,
},
{
name: 'Project2',
day1: 1,
day2: 5,
day3: 2.5,
day4: 4,
day5: 1.9,
},
{
name: 'Project3',
day1: 6.78,
day2: 2.55,
day3: 4,
day4: 3,
day5: 1,
},
]
*ngFordirective and access the properties directly.