Fixed JSON parsing by replacing ' with " in the JSON string to fit in an HTML attribute cleanly (though this is awkward JSON)