title: How to read data of a nested dictionary in json request
body: <p>I'm changing up the way I send JSON requests to my flask server by doing a nested dictionary.  </p>
  
  <p>I was originally sending the dictionary below from my iOS device:</p>
  
  <pre><code>["email": email, "password": password, "business":business]
  </code></pre>
  
  <p>and reading the data on my flask server by doing the following:</p>
  
  <pre><code>data = MultiDict(mapping=request.json)
  form = RegistrationForm(data)
  </code></pre>
  
  <p>The iOS side has been changed to:</p>
  
  <pre><code>userDict = ["email": email, "password": password, "business": business]
  ["userInfo": userDict] //sending this dictionary to flask
  </code></pre>
  
  <p>Not sure how I'm suppose to tailor my flask code to work with this so that I can still use the form to validate the data received.  So far this hasn't been working:</p>
  
  <pre><code>d=MultiDict(mapping=request.json)
  data = d.get('userInfo')
  form = RegistrationForm(data)
  
  email = StringField('email', validators=[Required()])
  business = StringField('business', validators=[Required()])
  password = PasswordField('password', validators=[Required()])
  </code></pre>