We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am receiving this kind of response from my server
[ { "created_at" : "Sat Apr 14 00:20:07 +0000 2012", "id_str" : 190957570511478784, "text" : "Tweet text" }, { "created_at" : "Sat Apr 14 00:20:07 +0000 2012", "id_str" : 190957570511478784, "text" : "Tweet text" } ]
How do I parse this ?
The text was updated successfully, but these errors were encountered:
Convert the response to NSArray, then iterate:
NSArray *responseArray = responseObject; DCKeyValueObjectMapping *parser = [DCKeyValueObjectMapping mapperForClass:[Tweet class]];
for (int i = 0; i < [responseArray count]; i++) { Tweet *tweet = (Tweet *) [parser parseDictionary:responseArray[i]]; [self.tweets addObject:tweet]; }
Sorry, something went wrong.
No branches or pull requests
I am receiving this kind of response from my server
[
{
"created_at" : "Sat Apr 14 00:20:07 +0000 2012",
"id_str" : 190957570511478784,
"text" : "Tweet text"
},
{
"created_at" : "Sat Apr 14 00:20:07 +0000 2012",
"id_str" : 190957570511478784,
"text" : "Tweet text"
}
]
How do I parse this ?
The text was updated successfully, but these errors were encountered: