Adds filename to the json payload