I am attempting to switch from a dropdown to a multiselect dropdown.
<select name="molecularMethod" class="form-control" ng-model="request.molecularMethod" multiple>
It is functioning properly. However, when items are selected, it generates an array like this:
MOLECULARMETHOD : (2) ["Am", "BAC"]
My goal is to convert this into JSON so that I can use it in the Odata POST Body.
To achieve this, I used:
JSON.stringify($scope.request.molecularMethod)
Now, the output looks like this:
MOLECULARMETHOD : "["Am","BAC"]"
Instead, I am aiming for:
MOLECULARMETHOD : "Am,BAC"