title: Building complex JSON in Javascript
body: <p>Just started using JavaScript and need some guidance on how best to create /build the JSON below on the fly/dynamically.</p>
  
  <p>Some of the keys will need to be from variables.  For example in the JSON below, keys called 'variable_key_*' will need to be from a variable.</p>
  
  <pre><code>{
    "static_key_1": "value",
    "static_key_2": [{
      "static_key_3": {
        "id": "1097274153"
      },
      "static_key_4": "value",
      "static_key_5": {
        "static_key_6": {
          "variable_key_1": "value",
          "variable_key_2": "value",
          "variable_key_3": "value"
        },
        "static_key_7": {
          "static_key_8": [
            "value"
          ]
        }
      }
    }]
  }
  </code></pre>