I am facing an issue where I have an array of objects in string format that I need to convert into a normal array of objects. I tried using the JSON.parse()
method for conversion, but when attempting to access values like: this.contact_data[0].data.value
, it returns undefined.
Below is my array of objects:
contact_data.data='[{'name':"Number",'value':"22222222"},{'name':"gmail",'value':"<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0f7776754f686e626663216c6062">[email protected]</a>"}]'