This is what my structure looks like:
{'MovieName': 'Its-a-Wonderful-Life', 'Description': 'MovieDiscription', 'IMDBID': '0038650'}
I want to print out only the MovieName element.
I'm using this code to get it:
db = TinyDB('Databases/Downloaded_Movies.json')
for item in db:
print(item.MovieName)
but I'm getting this error:
AttributeError: 'Document' object has no attribute 'MovieName'
How do I fix the code?