Modify payload to use an object instead of string