Say i have the following json array
[ { title: 'Demo', key: 'IJwARZ9P', image: '#EF6176' },
{ title: 'Test', key: 'O-q-XmoX', image: '#35A8C0' },
{ title: 'Example', key: 'lBZiB0QF', image: '#99C953' },
{ title: 'Greet', key: 'p6RZf9tt', image: '#F56E45' } ]
And i know the title of the element i want to update. For this example, i wish to add a 'description' element to the element with title: 'Test'
. I have the entire item where the title is {...} stored, so i can access the title from there, but i was wondering how to add an element to this specific item.
Apologies if ive used any incorrect terminology, pretty new to json. Any help would be much appreciated.