We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61db73 commit d94be3fCopy full SHA for d94be3f
serializer.rst
@@ -1818,7 +1818,7 @@ property. This can be used instead of
1818
},
1819
],
1820
];
1821
- $jsonContent = $serializer->serialize($person, 'json');
+ $jsonContent = $serializer->serialize($person, 'json', $context);
1822
// $jsonContent contains {"name":"cordoval","age":34,"createdAt":"2014-03-22T09:43:12-0500"}
1823
1824
Advanced Deserialization
0 commit comments