I'm new to VUE i have issue to convert dict to JSON in my Vue data
i have a paragraph with innerHTML {'id': '1', 'name':'test'}
i need to convert this string to object in my Vue.
I try:
const helloWorld = new Vue({
el:'#helloVue',
data: {
dict:JSON.parse(JSON.stringify(document.getElementById('vuedata').innerHTML)),
},
delimiters: ['[[', ']]'],
})
but when i expect Vue data it show me a string, not an object.