SyntaxFix
Write A Post
Hire A Developer
Questions
I used this method and managed to get the desired output. my script
x = "{'inner-temperature': 31.73, 'outer-temperature': 28.38, 'keys-value': 0}" x = x.replace("'", '"') j = json.loads(x) print(j['keys-value'])
output
>>> 0