From d94be3f1575f1696e088378390ec7cc03cd9dbf2 Mon Sep 17 00:00:00 2001 From: Florian Moser Date: Sun, 8 Dec 2024 15:52:04 +0100 Subject: [PATCH] Add missing argument --- serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serializer.rst b/serializer.rst index c783b138acb..4a4a934ca01 100644 --- a/serializer.rst +++ b/serializer.rst @@ -1818,7 +1818,7 @@ property. This can be used instead of }, ], ]; - $jsonContent = $serializer->serialize($person, 'json'); + $jsonContent = $serializer->serialize($person, 'json', $context); // $jsonContent contains {"name":"cordoval","age":34,"createdAt":"2014-03-22T09:43:12-0500"} Advanced Deserialization