add data to array javascript and becomoe json 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 );