javascript storing key value inside object
<p>I have some json strings that look like that:</p>

<pre><code>var TheJson = "{Key:[array of objects]}"
</code></pre>

<p>Key is actually a date and the json contains arrays of objects. I want to add this object to another object <code>HistoryOfData</code>, sort of like the <code>.push</code> method on arrays. Basically, I want the <code>HistoryOfData</code> object to have key value nested objects where the keys are dates and the values are arrays of data.</p>

<p>How do I push an object into another object? </p>
