JSON wrapper for cocos2d-x, based on cJSON