Greetings all,
I have some JSON code that looks like this:
{ playlist: [
'URL goes here',
{
// our song
url: 'another URL goes here'
}
]
}
I'd like to stick the value of a javascript variable into the JSON, and have it be substituted in place of 'URL goes here'. Is there a way to do that in JSON? I'm a noob at JSON so help would be much appreciated. The value of the variable to substitute would come from something like getElementById().getAttribute().
Thanks, NorthK