I'm trying to read in a JSON file using C++. In the file i have key value pairs. And in the value, I am passing number of values with different parameters.
Is this approach is correct? Please suggest if there is any modifications required?
approach1:
"test_details" : {
"testd" : "1",
"testvalue":["one", "two(param1, para2)", "three(param1, param2, param3)"]
}
approach2:
"test_details" : {
"testd" : "1",
"testvalue":"one"
},
{
"testd" : "2",
"testvalue":"two(param1, para2)"
},
{
"testd" : "3",
"testvalue":"three(param1, param2, param3)"
}
Thank you