const json = {
"name":"Leo",
"age":50,
"kids": [
{ "name": "Abbie", "hobbies": ["Programming", 'Movies', "Sports"]},
{ "name": "Ann", "hobbies": ["Dancing", 'Photography', "Singing"]},
{ "name": "Aaric", "hobbies": ["Gaming", 'Drawing']},
]
}
json.kids[0].hobbies[2] = "Yoga";
console.log(json.kids);
/*
run:
[
{ name: 'Abbie', hobbies: [ 'Programming', 'Movies', 'Yoga' ] },
{ name: 'Ann', hobbies: [ 'Dancing', 'Photography', 'Singing' ] },
{ name: 'Aaric', hobbies: [ 'Gaming', 'Drawing' ] }
]
*/