I am trying to pass in an textarea
an array of Vue.js, and would like to turn it into json
.
What would be the best way to do this?
new Vue({
el:"#app",
data : {
nome_da_variavel_array: '[{variavel : 'valor'},{variavel : 'valor'},{variavel : 'valor'}]'
}
});
<textarea>{{nome_da_variavel_array}}</textarea>