Say I have a json array that looks like this:
[
{
"Name": "test",
"Val": "test_val"
},
{
"Name": "test2",
"Val": "test_val2"
}
]
I want to convert this into a vector of structs:
struct Test {
string Name;
string Val;
};
I know about the json.get<>()
method, but do not know how to apply that to this.