title: How to pass and parse nested object with postman multipart/form-data
body: <p>I have a route which works with multipart/form-data. All was good before I tried to pass nested objects via postman. There are a lot of code in this function but I removed it for this question because it does not matter.</p>
  <pre><code>func (h *handler) SubmitFormNewPark(w http.ResponseWriter, r *http.Request) {
      ctx := context.InitFromHTTP(w, r, &quot;submit_form_new_park&quot;)
      defer ctx.OnExit(nil)
  
      err := r.ParseMultipartForm(0)
      if err != nil {
          logger.Get().Warn(ctx, &quot;can't parse new park form&quot;, zap.Error(err))
          h.writeResponse(ctx, w, models.FormParkResponse{Success: false})
          return
      }
  
      multipartForm := make(map[string]interface{})
      for key, value := range r.MultipartForm.Value {
          multipartForm[key] = value
      }
  }
  </code></pre>
  <p>Firstly all was good because I had not nested object</p>
  <p><a href="https://i.stack.imgur.com/rjbzh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rjbzh.png" alt="enter image description here" /></a></p>
  <p>But after I added nested object there are different keys in r.MultipartForm.Value</p>
  <p><a href="https://i.stack.imgur.com/68YMI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/68YMI.png" alt="enter image description here" /></a></p>
  <p>If I print the r.MultipartForm.Value I get next map</p>
  <pre><code>map[city:[city] entity_name:[entity_name] ip_info[ip_address]:[ip_address] ip_info[ip_fio]:[ip_fio] name:[Name] office_address:[office address] office_phone:[74954954949]]
  </code></pre>
  <p>But I expect get &quot;ip_info&quot; key as map with keys ip_address and ip_fio</p>
  <p>I also tried to use keys such as ip_info[0][ip_fio] and ip_info[0][ip_address].</p>