title: RestKit after post json, how to map json response to objects
body: <p>I follow this link <a href="https://github.com/RestKit/RestKit/wiki/Posting-NSDictionary-as-JSON" rel="nofollow noreferrer">https://github.com/RestKit/RestKit/wiki/Posting-NSDictionary-as-JSON</a> to create the json post, and get back json response from server. How could I continue process the json response to a list of objects?</p>
  
  <pre><code>- (void)sendAsJSON:(NSDictionary*)dictionary {
  
      RKClient *client = [RKClient clientWithBaseURL:@"http://restkit.org"];        
  
      // create a JSON string from your NSDictionary 
      id&lt;RKParser&gt; parser = [[RKParserRegistry sharedRegistry] parserForMIMEType:RKMIMETypeJSON];
      NSError *error = nil;
      NSString *json = [parser stringFromObject:dictionary error:&amp;error];
  
      // send your data
      if (!error)
          [[RKClient sharedClient] post:@"/some/path" params:[RKRequestSerialization serializationWithData:[json dataUsingEncoding:NSUTF8StringEncoding] MIMEType:RKMIMETypeJSON] delegate:self];
  
  }
  
  
  - (void)request:(RKRequest *)request didLoadResponse:(RKResponse *)response
  {
      NSLog(@"after posting to server, %@", [response bodyAsString]);
  }
  </code></pre>
  
  <p><strong>EDIT1:</strong> this is the Json I want to POST to server.</p>
  
  <pre><code>{
      "memberId": "1000000",
      "countryCode": "US",
      "contacts": [
          {
              "phoneNumber": "+12233333333",
              "memberId": "2222",
              "contactId": "123456",
              "name": "john"
          },
          {
              "phoneNumber": "+12244444444",
              "memberId": "3333",
              "contactId": "123457",
              "name": "mary"
          }
      ]
  }
  </code></pre>
  
  <p><strong>EDIT2:</strong> Someone actually resolved this in another thread.
  <a href="https://stackoverflow.com/a/7726829/772481">https://stackoverflow.com/a/7726829/772481</a></p>