0

I'm a new iOS developer I want to add my JSON response object into a NSDictionary, which is declared globally. I paste my code, so anyone easily understand how i got my response object.

[manager POST:strUrl parameters:params progress:nil success:^(NSURLSessionDataTask *task, id responseObject) {
    if ([[responseObject objectForKey:@"result"] isEqualToString:@"TRUE"]) {
//Here I want this
}
Anupam Das
  • 67
  • 10
  • Possible duplicate of [Convert JSON feed to NSDictionary](https://stackoverflow.com/questions/5038371/convert-json-feed-to-nsdictionary) – koen Apr 19 '18 at 11:15
  • I tried but didn't work – Anupam Das Apr 19 '18 at 11:28
  • "It didn't work" is not very helpful to understand your problem. Please share more of your code and explain what goes wrong. – koen Apr 19 '18 at 11:48

1 Answers1

0

I got my answer, that is:

[dictManagement addEntriesFromDictionary:responseObject];

Here dictManagement is an NSMutableDictionary.

TheTiger
  • 13,264
  • 3
  • 57
  • 82
Anupam Das
  • 67
  • 10