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