Flask TypeError: ‘method’ object is not subscriptable

Solution
req = request.get_json() 
word = req['word']
meaning = req['meaning']