Creating key,value pair dynamically with angularjs and passing the same to java Map
<p>I have two empty text boxes in front end one for key and another for value one add button and a submit button.User can click on the add button to add one more pair of two text boxes each representing key and value respectively.</p>

<p>User is free to add any text as key and any text as value in the text boxes.
The submit button is to submit the final form.
I want to get these data in angularJS and further pass this to java Map through a post request.</p>

<p>To be specific a Map in java looks like this when converted to Json.</p>

<pre><code>{"A":"something","B":"something","C":"something","D":"value"} 
</code></pre>

<p>But I am not able to create such structure dynamically from front end using angularJS.</p>