I'm unfamiliar with nodejs and javascript generally.
I have the following code which I need to pass as a variable within nodejs:
"metadata": {
"title": "title of the track to display",
"subtitle": "subtitle of the track to display",
"art": {
"sources": [
{
"url": "https://url-of-the-album-art-image.png"
}
]
},
"backgroundImage": {
"sources": [
{
"url": "https://url-of-the-background-image.png"
}
]
}
}
I have so far been able to do this:
var metadata = {
"title": "title of the track to display",
"subtitle": "subtitle of the track to display"
};
Which works, but I do not know how to then correctly pass the "art" and "backgroundImage" part. I have tried all kinds of things, but none of them have worked.