Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Improve serialization example #71

Merged
merged 1 commit into from

2 participants

@tvlooy

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

@schmittjoh schmittjoh merged commit 423de83 into schmittjoh:master

1 check passed

Details default Scrutinizer: No Comments — Travis: Passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2013
  1. @tvlooy

    Improve serialization example

    tvlooy authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  doc/index.rst
View
3  doc/index.rst
@@ -30,7 +30,8 @@ Usage
For standalone projects usage of the provided builder is encouraged::
$serializer = JMS\Serializer\SerializerBuilder::create()->build();
- $serializer->serialize($data, 'json');
+ $jsonContent = $serializer->serialize($data, 'json');
+ echo $jsonContent; // or return it in a Response
Documentation
-------------
Something went wrong with that request. Please try again.