I want to assign a string with a json array. My code is:
JSONArray v;
JSONObject x,y,value;
....
x[L"x"]=new JSONValue((double)(i));
x[L"y"]=new JSONValue((double)(i));
value[L"value"]=new JSONValue((char*)(data));
v.push_back(new JSONValue(x));
v.push_back(new JSONValue(y));
v.push_back(new JSONValue(value));
all[i]->fruits->append(new JSONValue(v)); //error here,fruits is a string type
fruits is a string defined inside all.
I tried using push_back too but Its not working.
lin this code? What isfruits?new.