How to Solve NameError: name 'jsonify' is not defined -- flask

Solution: Import the 'jsonify' module

# Add the following line to the top of your code
from flask import jsonify

 

For more information:
flask jsonify