I\'m receiving user registration data from an iOS application and I\'d like to use the validators that come with wtforms to make sure the email and password are acceptable. How
Yes, this is entirely possible - the wtforms.Form
constructor takes any MultiDict
like interface (it just needs to have getlist), so you can just create an instance of werkzeug.datastructures.MultiDict from your JSON:
data = MultiDict(mapping=request.json)
form = YourForm(data)
if form.validate():
# Data is correct
(assuming the field names match) and things will just work.