diff --git a/src/Payload.php b/src/Payload.php index 85b3d3f..ed4729f 100644 --- a/src/Payload.php +++ b/src/Payload.php @@ -466,7 +466,11 @@ public function jsonSerialize() } if (is_array($this->urlArgs)) { - $payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_URL_ARGS_KEY} = $this->urlArgs; + $payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_URL_ARGS_KEY} = []; + + foreach ($this->urlArgs as $key => $arg) { + $payload[self::PAYLOAD_ROOT_KEY]->{self::PAYLOAD_URL_ARGS_KEY}[] = $arg; + } } if (is_countable($this->customValues) && count($this->customValues)) {