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.
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.
To be specific a Map in java looks like this when converted to Json.
{"A":"something","B":"something","C":"something","D":"value"}
But I am not able to create such structure dynamically from front end using angularJS.