add elements to json array code example
Example: push json into json
//create object
var myObj = {
"artist" : artist, //your artist variable
"song_name" : title //your title variable
};
//push the object to your array
favorites.push( myObj );