```js
var screenshots;
var videos;

try {
    screenshots = JSON.parse(decodeURIComponent(POST.screenshots));
    videos = JSON.parse(decodeURIComponent(POST.videos));
} catch(e) {
    res.json(400, {error: 'Could not parse screenshots or videos'});
    done();
    return;
}

var data = {
    // ...
    screenshots: screenshots,
    videos: videos
};
```