I have a python function with flask
from flask import jsonify def method1(): result = {"jsonrpc": "2.0", ... } return jsonify(result) then, from another method, I call method1:
def method2(): otherResult = method1() ... In method2, I want to get the contents of result (which is from method1). How can I do it? The problem is that if I try to do this:
response = otherResult['jsonrpc'] then at execution the error is received:
TypeError: 'Response' object has no attribute '__getitem__'