|
@@ -30,7 +30,8 @@ Usage
|
|
For standalone projects usage of the provided builder is encouraged::
|
|
For standalone projects usage of the provided builder is encouraged::
|
|
|
|
|
|
$serializer = JMS\Serializer\SerializerBuilder::create()->build();
|
|
$serializer = JMS\Serializer\SerializerBuilder::create()->build();
|
|
- $serializer->serialize($data, 'json');
|
|
|
|
|
|
+ $jsonContent = $serializer->serialize($data, 'json');
|
|
|
|
+ echo $jsonContent; // or return it in a Response
|
|
|
|
|
|
Documentation
|
|
Documentation
|
|
-------------
|
|
-------------
|