I recently asked this question about converting an array of objects into a vector of structs. I want to do the same thing, but rather vectors I want an array. For example
[
{
"Name": "Test",
"Val": "TestVal"
},
{
"Name": "Test2",
"Val": "TestVal2"
}
]
And want an array of of these structs:
struct Test {
string Name;
string Val;
};
How can this be possible? I am new to c++ so if I am doing anything wrong please say so.