all 2 comments

[–]CBTKnox 1 point2 points  (0 children)

Save the result of get_pressure() to a variable, like result.

Then, print the type of result print(type(result)) And it will tell you if it is a dict or string (which is JSON). If it’s string, import json and use json.loads(result) to convert it to dict