JMSSerializerBundle
JMSSerializerBundle copied to clipboard
How do you deserialize an array with FOSRest
Hello, How do you deserialize that in an API ?
[
{"op":"data","value":"Test of Thursday","property":"name"}
]
I need to put as inline:true for that, but the inline is not for deserialization.
if I do that in my controller it works.
$col = $this->get("jms_serializer")->deserialize($request->getContent(), 'array<XXX\DataOperation>', 'json');
Could you help me please ? Thanks L.