JMSSerializerBundle icon indicating copy to clipboard operation
JMSSerializerBundle copied to clipboard

How do you deserialize an array with FOSRest

Open laudeco opened this issue 9 years ago • 0 comments

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.

laudeco avatar Dec 09 '15 10:12 laudeco