Could not cast value of type '__NSArrayI' (0x10df73c08) to 'NSDictionary' (0x10df74108)
<pre><code>    let url = "http://xyz/index_main.php?c=webservices&amp;a=get&amp;e=007"

    Alamofire.request(url, method: .post, parameters: nil, encoding: JSONEncoding.default)
        .responseJSON { response in
            print(response)
            //to get status code
            if let status = response.response?.statusCode {
                switch(status){
                case 201:
                    print("example success")
                default:
                    print("error with response status: \(status)")
                }
            }
            //to get JSON return value
            if let result = response.result.value {
                let JSON = result as! NSDictionary
                print(JSON)
            }
</code></pre>

<p><strong>Result :</strong></p>

<pre><code>    {
    "create_by" = 007;
    "create_date" = "2016/06/20";
    "due_date" = "2016/06/22";
    "estimate_time" = "";
    fixer = 007;
    priority = High;
    "project_code" = testing;
    status = "Re-Open";
    "task_id" = 228;
    "task_title" = test;
    tester = 007;
},
    {
    "create_by" = 006;
    "create_date" = "2016/06/23";
    "due_date" = "2016/06/24";
    "estimate_time" = "";
    fixer = 007;
    priority = Critical;
    "project_code" = "tanteida.c";
    status = "In Progress";
    "task_id" = 234;
    "task_title" = testing;
    tester = 006;
}
</code></pre>

<p>I want to convert to <code>NSDictionary</code> and get different Array like <code>task_id</code>(array) but I get this error:</p>

<blockquote>
  <p>"Could not cast value of type '__NSArrayI' to NSDictionary"</p>
</blockquote>

<p><strong>Please Help me</strong></p>

<p><strong>Thank you in advance</strong></p>