I tried to populate my v-select multiselect element using a JSON object, but unfortunately it did not work as expected.
Here is the result I encountered:
https://i.sstatic.net/kd1Gl.png
<v-select v-model="serviceValues" :items="serviceOptions" item-text="serviceOptions" clearable multiple>
</v-select>
serviceOptions: {"youtube":0,
"facebook":1,
"whatsapp":2,
... (remaining key-value pairs truncated for brevity)
"softonic":197}
After selecting multiple services, the `serviceValues` array should be populated like this:
serviceValues: [0, 2, 3, 4, 5, ...]
My question is how can I display only the keys (such as youtube, facebook, whatsapp, etc.) in vue select and then store the selected values in the `serviceValues` array when users choose multiple services?