Skip to content
This repository

Improve serialization example #71

Merged
merged 1 commit into from about 1 year ago

2 participants

Tom Van Looy Johannes
Tom Van Looy

Question was raised by symfony/symfony-docs#2225 and a PR was also provided for the serializer component symfony/symfony-docs#2402

Johannes schmittjoh merged commit 423de83 into from March 30, 2013
Johannes schmittjoh closed this March 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 30, 2013
Tom Van Looy Improve serialization example fc3d975
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  doc/index.rst
3  doc/index.rst
Source Rendered
@@ -30,7 +30,8 @@ Usage
30 30
 For standalone projects usage of the provided builder is encouraged::
31 31
 
32 32
     $serializer = JMS\Serializer\SerializerBuilder::create()->build();
33  
-    $serializer->serialize($data, 'json');
  33
+    $jsonContent = $serializer->serialize($data, 'json');
  34
+    echo $jsonContent; // or return it in a Response
34 35
 
35 36
 Documentation
36 37
 -------------
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.