How can i add "name_3" to this json?
json = {
"name_1": [{
"kind": "podcast",
"artistId": 139918600
},
{
"kind": "podcast",
"artistId": 139918600
}
],
"name_2": [{
"kind": "podcast",
"artistId": 139918600
},
{
"kind": "podcast",
"artistId": 139918600
}
]
}
var name_3 = {"kind": "audio","artistId": 4691754},{"kind": "video","artistId": 139918600}
i want to access it like this json.name_3[0]artistId
Later, i will have to check if it already exist and rewrite it, or delete it from a custom function
"name_1":[...and"name_2":[..., but"name_3":{...Apples and oranges