How to Solve NameError: name 'diff' is not defined -- jsondiff
Solution: Import the 'diff' module
To Solve the error, add the following line to the top of your code.
from jsondiff import diff
For more information:
Python jsondiff diff