Just as info so is data shown already a dictionary,so no need to put trough the Json module
I guess in code that you don't show that have been using Requests to get Json data.
Request has build in Json decoder that give a Python dictionary back.
So in my post i did nothing else than a plain copy of your data(and format it) the use assign it to a variable
I guess in code that you don't show that have been using Requests to get Json data.
Request has build in Json decoder that give a Python dictionary back.
So in my post i did nothing else than a plain copy of your data(and format it) the use assign it to a variable
data
.>>> type(data) <class 'dict'> >>> >>> print(f"amount: {data['_source']['amount']}, email: {data['_source']['email']}, mobile: {data['_source']['mobile']}, accountOwner: {data['_source']['accountOwner']}") amount: 300, email: [email protected], mobile: 100000012457, accountOwner: Tom HankSo no Json module is used and the f-string for ibreeden code work on it.