I have to create a grid with undefined columns which is based on Json data,
[{
Name: "John",
Designation: "Analyst",
Age: 25,
Department: "IT"
},
{
Name: "Matthew",
Designation: "Manager",
Age: 38,
Department: "Accounts"
},
{
Name: "Emma",
Designation: "Senior Manager",
Age: 40,
Department: "HR"
}];
My desired output is as below:
As header:
Name | Designation | Age | Department
As datarow:
John | Analyst | 25 | IT
Please, anyone help me how I have to start and how to do it.