So I'm having trouble printing some variable specified in a json file. Take a look at the code below and you'll understand.
"example.json"
{
"to-print":{
"content":"My name is {name}"
}
}
"example.py"
import json
name = "wraithM17"
with open("example.json","r") as f:
data = json.load(f)
content = data["to-print"]["content"]
print(f"{content}")
So any way I can print that variable "name" like this ?