how to add key and a value to a json with same existing Key using Javascript
<p>I have a json variable like this</p>

<pre><code>var jsondata={"key1":"val1", "key2":"val2"}
</code></pre>

<p>I want to push another object with same existing key, and i want that my variable will be like this</p>

<pre><code>var jsondata={"key1":"val1", "key2":"val2", "key1":"val3"}
</code></pre>

<p>I tried <code>jsondata["key1"] = "val3"</code>, but it didn't return the wanted result</p>

<p>Thank you in advance.</p>