I have a data object in Vue JS called tags that looks like this:
tags: [
{name: "menu"},
{name: "red"}
],
Currently I am able to output them with this
var tags = this.tags;
var tagss = JSON.stringify(tags);
console.log('list of tags:' + tagss);
but it returns it like this:
list of tags:[{"name":"menu"},{"name":"red"}]
and I want it to return them like this:
list of tags: menu,red
Any idea how to do this? The reason I want it like this is so I can query my API with a list of tags.
Thanks in advance.