Strip out rogue trailing spaces in JSON var names
Strip out rogue trailing spaces in JSON var names

The horrible, hacky conversion of the js variable into JSON threw a bug. Shocker. In the JSON that was being outputted, there were instances where spaces were being included in the JSON variable name, e.g. "trackinfo ":[{...}]. I have crudely stripped these out and  it seems to work for all the test instances I have come across, but this really needs to be done using regex. Or better yet, replace the whole thing with a 'JSON fixer-upper' util, if one exists.
bachelarius/bandcampscraper_php