Dumps payload to payload.json on hook