title: Store Python function in JSON
body: <p>Say I have a JSON file as such:<br></p>
  
  <pre><code>{
    "x":5,
    "y":4,
    "func" : def multiplier(a,b):
                 return a*d
  }
  </code></pre>
  
  <p>This over-simplifies what I want to try and do, but basically I am attempting<br>
  to story a python UDF into a JSON file. Is there a way to do this so that when I 
  do:<br></p>
  
  <pre><code>with open('config.json') as f:
      data = json.load(f)
  </code></pre>
  
  <p>I can access those values and do something like:<br></p>
  
  <pre><code>v1, v2 = data['x'], data['y']
  mult = data['func']
  print(mult(v1,v2))
  </code></pre>
  
  <p>To get expected output: 20<br><br>
  <strong>NOTE</strong>: To my understanding JSON doesn't store functions, so maybe I can store it as a string, and then in my python script parse the string into a function? Not too sure.</p>