title: How to add a new key value pair in existing JSON object using JavaScript?
body: <pre><code>var json = {
      "workbookInformation": {
          "version": "9.1",
          "source-platform": "win"
      },
      "datasources1": {
          ...
      },
      "datasources2": {
          ...
      }
  }
  </code></pre>
  
  <p>I need to add new key pair under <code>workbookInformation</code> like</p>
  
  <pre><code>var json={
      "workbookInformation": {
           "version": "9.1",
           "source-platform": "win",
           "new_key":"new_value"
      },
      "datasources1": {
          ...
      },
      "datasources2": {
          ...
      }
  }
  </code></pre>
  
  <p><code>json['new_key'] = 'new_value';</code> adds the new key but I want it under "workbookInformation"</p>