dump the custom payload to a json string