I have some data like
{
"GLOBAL DATA":
{
"FIRST": [
{"BEGIN": "0", "END" : "100"}
],
"SECOND":"SomeData",
"THIRD":"SomeMoreData"
}
}
I want to add more data to FIRST array.
I tried creating the insertion data as follows
json v2 = {"BEGIN": "200","END" : "300"};
But this gives error
example1.cpp:34:23: error: expected '}' before ':' token json v2 = {"BEGIN": "200","END" : "300"};
What's the issue with my v2 data?