title: Nested Json with multipart/form-data in AFNetworking 2.x
body: <p>I am trying to send nested json with an image from my ios app using AFNetworking library.I am able to send the json data and image successfully but in server the json structure is coming differently.</p>
  
  <p>HTTP request inside my app :-</p>
  
  <pre><code>AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
  NSDictionary *params = @{@"requestData":@{@"username":@"200OK",@"password":@"password"}};
  
  manager.requestSerializer = [AFJSONRequestSerializer serializer];
  manager.responseSerializer = [AFJSONResponseSerializer serializer];
  
  
  [manager POST:Self_URL
     parameters:params constructingBodyWithBlock:^(id&lt;AFMultipartFormData&gt; formData) {
             [formData appendPartWithFileData:UIImagePNGRepresentation(image)
                                         name:@"file"
                                     fileName:@"file"
                                     mimeType:@"image/jpeg"];
  
  } success:^(AFHTTPRequestOperation *operation, id responseObject) {
      NSLog(@"Response: %@", responseObject);
  } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
      NSLog(@"Error: %@", error);
  }]; 
  </code></pre>
  
  <p>So in my django server I am expecting the params as a dictionary same as params but <code>request.POST</code> is coming as</p>
  
  <pre><code>content_type---&gt; multipart/form-data; boundary=Boundary+247685AB6DF2B3BA
  &lt;QueryDict: {'requestData[password]': [u'password'], 'requestData[username]': [u'200OK']}&gt;
  </code></pre>
  
  <p>How can I send json data so that it will be easy to access from server ?
  Anything I am missing or what is going wrong?</p>