diff --git a/cookbook/serializer.rst b/cookbook/serializer.rst index 8da5c70a583..8b2d9b296d8 100644 --- a/cookbook/serializer.rst +++ b/cookbook/serializer.rst @@ -169,7 +169,7 @@ to your class and choose which groups to use when serializing:: $serializer = $this->get('serializer'); $json = $serializer->serialize( $someObject, - 'json', array('groups' => array('group1') + 'json', array('groups' => array('group1')) ); .. _cookbook-serializer-enabling-metadata-cache: