Within my extJS form, I am utilizing a multiselect combobox. Upon submission, it provides an array of strings.
I am looking to convert this array into JSON format in a specific way. As an example, the initial array may look like this:
categories : ['ABC','XYZ']
The desired JSON format would be:
"categories":[{"name":"ABC"},{"name":"XYZ"}]
Are there any built-in methods in ExtJS to achieve this conversion? Alternatively, how can this be accomplished using JavaScript?