Dynamic mapping
<p>I have JSON response.body </p>

<pre><code>{"0":
      {"id":724,
      "firstName":"Dr. Anna-Maria",
      "lastName":"Boehler (Bohler)",
      "city":"Luxembourg"},
    "1":
      {"id":1542,
      "firstName":"Joanna",
      "lastName":"Kotlewska (Biever)",
      "city":"Rodange"},
    "2":
      {"id":1681,
      "firstName":"Dr. Joanna",
      "lastName":"Louwagie (Hoche)",
      "city":"Luxembourg"},
    "3":
      {"id":2161,"firstName":"Magdalena",
      "lastName":"Sarrazin (Owsianna)",
      "city":"Luxembourg"},
    "4":
      {"id":10822,"firstName":"Anna",
      "lastName":"Kogut-Aramini",
      "city":"Diekirch"}
    ,"uri":"search-by-name",
    "paramsURL":{"country":"1","name":"Anna"}}
</code></pre>

<p>in AppDelegate add RKObjectMapping and RKDynamicMapping </p>

<pre><code>RKObjectMapping *showListDoctorMapping = [RKObjectMapping mappingForClass:[ShowListResultResponse class]];
    [showListDoctorMapping addAttributeMappingsFromDictionary:@{
                                                                @"id" : @"id",
                                                                @"firstName" : @"firstName",
                                                                @"lastName" : @"lastName",
                                                                @"city" : @"city"
                                                                }];
    RKDynamicMapping *dynamicMapping = [RKDynamicMapping new];
    [dynamicMapping setObjectMappingForRepresentationBlock:^RKObjectMapping *(id representation) {

        NSDictionary *dict = representation;
        NSArray *keys=[dict allKeys];
        RKObjectMapping *dataMapping =[RKObjectMapping mappingForClass:[ShowListResultResponse class]];
        for (NSString *key in keys){
            [dataMapping addRelationshipMappingWithSourceKeyPath:key mapping:showListDoctorMapping ];
        }
        return dataMapping;
    }];
</code></pre>

<p>ShowRensponse</p>

<p>and add ShowListResultResponse this class Mapping  </p>

<pre><code>import UIKit
import Foundation
class ShowListResultResponse: NSObject {

var id: Int?
var fristName: String?
var lastName: String?
var city: String?

override init() {
    super.init()
}

init(id: Int, fistName: String, lastName: String, city: String) {
    self.id = id
    self.fristName = fistName
    self.lastName = lastName
    self.city = city
}
}
</code></pre>

<p>class DoctorsDataSource </p>

<pre><code>import UIKit
class DoctorsDataSource: NSObject, MLPAutoCompleteTextFieldDataSource {

var listDoctors=[String]()
func autoCompleteTextField(textField: MLPAutoCompleteTextField!, possibleCompletionsForString string: String!, completionHandler handler: ([AnyObject]!) -&gt; ()) {

    let appDelegate: AppDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate)
    var requestParameters: [NSObject:AnyObject] = [NSObject: AnyObject]()

    requestParameters["name"] = textField.text
    requestParameters["country"]="1"

    // Pobiera długość znaku textField
    let lenght = textField.text!.characters.count

    if lenght&gt;3{
        let request = appDelegate.objectManager.requestWithObject(nil, method: .GET, path: "/search-by-name", parameters: requestParameters)
        request.setValue("application/json", forHTTPHeaderField: "Accept")
        let operation  = appDelegate.objectManager.objectRequestOperationWithRequest(request, success: { (operation: RKObjectRequestOperation!, rkmap: RKMappingResult!) in

            let list = rkmap.firstObject as AnyObject
            if let doctors = list as? [ShowListResultResponse]{
                //if let doctors = rkmap.array() as? [ShowListResultResponse]  {
                    for doctor: ShowListResultResponse in doctors {
                        self.listDoctors.append("\(doctor.fristName) \(doctor.lastName)")
                    }
                }

                handler(self.listDoctors);
            }) { (operation: RKObjectRequestOperation!, error: NSError!) in
                print("Load filed with error: @", error!)
                self.performSelectorOnMainThread(#selector(AppDelegate.showFetchError), withObject: nil, waitUntilDone: true)
            }
            appDelegate.objectManager.enqueueObjectRequestOperation(operation)
       // }
    }}
}
</code></pre>

<p>I don't know why don't show doctor list </p>