[Serializer] JsonEncoder must return arrays only
This commit is contained in:
parent
4d4eec618c
commit
cbd4fdd398
@ -36,6 +36,6 @@ class JsonEncoder extends AbstractEncoder implements EncoderInterface
|
||||
*/
|
||||
public function decode($data, $format)
|
||||
{
|
||||
return json_decode($data);
|
||||
return json_decode($data, true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user