title: WTForms, how to attach JSON data to the request
body: <p>I'm bulding a form with WTForms for a Flask application.
  This form's las field is an address field that works with google PlacesAPI, so it autocompletes the address the user is introducing in that field.</p>
  
  <p>I want to be able to save all the data this PlacesAPI generates when the user selects an address, but I'm struggling to find a proper way to send that data to the server.</p>
  
  <p>I have a Flask with MongoDB as backend.</p>
  
  <p><strong>What I have tried</strong></p>
  
  <ol>
  <li>AJAX</li>
  </ol>
  
  <p>I submited the form with Jquery Ajax method, I validated it by adding WTF-JSON to my project, it monkeypatches the Form class and some methods so it can process JSON as ***kwargs.</p>
  
  <p><strong>Problem</strong>: this leaves me without being able to easily redirect the user on form validation.</p>
  
  <ol start="2">
  <li>Adding hidden input field</li>
  </ol>
  
  <p>I can add a hidden input field where I add all the address JSON as a string and then process it in my backend</p>
  
  <p><strong>Problem</strong>: Somehow this simes hacky, I was wondering if there is a better way</p>
  
  <p><strong>Question</strong></p>
  
  <p>What would be the right way to do this? It's the first time I've tried, so I'm pretty sure there must be a way I'm missing here. Thanks a lot for all your help.</p>