Files
FOSRest/Decoder/JsonDecoder.php
T
Lukas Kahwe Smith fc03a08873 move to using JMSSerializerBundle
- there are no more encoders and all serializer configuration needs to be done via JMSSerializerBundle
- instead one can now register decoders for the BodyListener
- formats now define of a format uses templating or not
- normalizers still need to be rewritten to follow whatever approach JMSSerializerBundle uses
2011-08-01 21:46:58 +02:00

20 lines
295 B
PHP

<?php
namespace FOS\RestBundle\Decoder;
/**
* Encodes JSON data
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
class Jsondecoder implements DecoderInterface
{
/**
* {@inheritdoc}
*/
public function decode($data)
{
return json_decode($data, true);
}
}