diff --git a/serializer.rst b/serializer.rst index d0dc2aea95c..b30b5caf2e2 100644 --- a/serializer.rst +++ b/serializer.rst @@ -948,7 +948,7 @@ works just like serializing a single object:: $person2 = new Person('John Smith', 52, true); $persons = [$person1, $person2]; - $JsonContent = $serializer->serialize($persons, 'json'); + $jsonContent = $serializer->serialize($persons, 'json'); // $jsonContent contains [{"name":"Jane Doe","age":39,"sportsman":false},{"name":"John Smith","age":52,"sportsman":true}]