When data-person has a value of 80 I want to show the content that is in the object with the matching key, ie. to access { "name": "Jhon Doe"} and show in the HTML.
<div id="people" data-person="80"></div>
var people = {"80": { "name": "Jhon Doe"}}
var obj = JSON.parse(people);
How I can get this? Thank You!
{ "name": "Jhon Doe"}?