title: Maintain relationship between variables when saving to / loading from JSON
body: <p>Is there any way of saving a variable to a json file that gets saved as a variable and opened as a usable variable later:</p>
  <pre><code>import json
  
  variable = 123
  test = {
      1 : 1*variable,
      2 : 2*variable,
      3 : 3*variable
  }
  
  with open('json_data_Test.json', 'w') as outfile:
      json.dump(test,outfile)
  
  variable = 200
  
  with open('json_data_Test.json', 'r') as outfile:
      test2 = json.load (outfile)
  
  print(test2)
  </code></pre>
  <p>Output:
  <code>{'1': 123, '2': 246, '3': 369}</code></p>
  <p>Desired Output:
  <code>{'1': 200, '2': 400, '3': 600}</code></p>
  <p>The aim is to when the json file is reopened and brought into a dictionary, the values are changeable based on the new value of  <code>variable</code>.</p>