void CCJSONConverter::convertJsonToDictionary(cJSON *json, CCDictionary *dictionary)
{
    dictionary->removeAllObjects();
    cJSON * j = json->child;
    while (j) {
        CCObject * obj = getJsonObj(j);
        dictionary->setObject(obj, j->string);
        j = j->next;
    }
}
Ejemplo n.º 2
0
void CCJSONConverter::convertJsonToDictionary(cJSON *json, __Dictionary *Dictionary)
{
    Dictionary->removeAllObjects();
    cJSON * j = json->child;
    while (j) {
        Ref * obj = getJsonObj(j);
        Dictionary->setObject(obj, j->string);
        CCLog("Dictionary setObject -- addObject success  %s", j->string);
        j = j->next;
    }
}