How to parse CloudBoost data

91 Views Asked by At

I have written a swift function to fetch data from cloudboost server. I am getting data with it. But I am not able to parse that data and general NSDictionary or NSArray form.

@IBAction func readData(sender: AnyObject) {
    let query = CloudQuery(tableName: "MyTable")
    try! query.find({ response in
        response.log();
    })
}

I am getting below respose for my query but I am not able to parse the data, can someone help me here?

Success? true
Status: Optional(200)
Message: nil
Object: Optional(<_TtCs21_SwiftDeferredNSArray 0x170035e60>(
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject,
CloudBoost.CloudObject
)
)

How to convert CloudBoost.CloudObject object to NSDictionary or NSArray to get my strings?

0

There are 0 best solutions below