title: How to update nested json dictionary with multiple values in python
body: <p>I want to update the below JSON dictionary (jsondict) with multiple values by calling function something like <code>update_dict()</code>. Values sent to <code>update_dict()</code> are variable no of arguments (sometimes two, three or five). Also, it should be able to update the value for key in a nested dictionary at multiple places. (ex , timeout = '120' in below example)</p>
  
  <p>Function call:</p>
  
  <pre><code>update_dict(job_id = "test_1", hostname = "linux" , timeout = "120")
  </code></pre>
  
  <p>Json dictionary:</p>
  
  <pre><code>jsondict = {"job_id":"test",
  "hostname":"windows",
  "username":"user",
  "password":"passwd",
  "logger_name":"xyz", 
  "commands":
          {"command1":
              {"command": "dir",
              "timeout": "60"},
  
          "command2":
              {"command": "cd",
              "timeout": "60"}},
  }
  </code></pre>
  
  <p>How to achieve this using python? Can someone help with this? It will be great help!!</p>