diff --git a/src/JsonSerializationWriter.php b/src/JsonSerializationWriter.php index b9fe461..3c29ed6 100644 --- a/src/JsonSerializationWriter.php +++ b/src/JsonSerializationWriter.php @@ -190,6 +190,8 @@ public function writeObjectValue(?string $key, $value, Parsable ...$additionalVa } if ($key !== null && $value !== null) { $this->writer [] = self::PROPERTY_SEPARATOR; + $this->writer []= '0'; + array_pop($this->writer); } }