'Accesing DOM element
Solution 1:[1]
You are in the need of JSON.parse()
, once this is done, you will be able to access the data. Here's what it looks like from a code perspective.
const data = JSON.parse('{\"title\": \"uno\"}'
console.log(data)
// Output: {title: 'uno'}
console.log(data.title)
// Output: uno
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |