No problem, hope your better now
this~~>_playerInProgress = false;
is missing from
If value is empty error occurs, so I placed
const char* Scoreoid::removeEmptyFields
Also I didn’t quite understand how to deal with the return data but I figure it out after awhile, probably you could add it to your example to save people some time.
ifreturnDictionary~~>objectForKey(“api”))~~>getCString, “getNotification”) == 0)
CCArray * pResultArray = returnDictionary~~>objectForKey(“result”));
CCDictionary* childDict = NULL;
CCObject* pObject = NULL;
childDict = (CCDictionary*)pObject;
//Do something with the data
As for my previous, I think its because the getNotification api returns an object with a nested array, where as the processJSON fucntion doesn’t seem to handle the parsing properly, for now I have hard-coded the expected response for the data. You can probably have it checked if the response is an array or object with nested array of elements. I am not familiar with json nor scoreoid, so i have just be hacking away at it.