I am making a class containing this function,
ofJson APILoad::urlLoader(string url, string file)
{
Response = ofLoadURL(url);
myBuffer = Response.data;
ResponseStr = myBuffer.getData();
cout << " " << ResponseStr;
FILE *fp;
fp = fopen(file.c_str, "w");
fprintf(fp, "%s", ResponseStr.c_str());
fclose(fp);
fflush(fp);
json = ofLoadJson(file);
return(json);
}
According to the question above, is the correct format?
Lots of documentation missing from ofJson it seems, any good resources?