jms-serializer Questions
2
Solved
I wish to use API-Platform to perform CRUD operations on object hierarchy classes. I found little written when using inherited classes with API-Platform and some but not much more when used with Sy...
Exhilaration asked 27/2, 2021 at 13:4
2
Solved
I want to deserialize something like this:
[
{ "id": 42 },
{ "id": 43 }
]
Any idea how to do this?
Hydric asked 11/6, 2017 at 8:53
3
I am unable to override default handlers in jms serializer bundle.
I'd like to change the way Symfony\Component\Validator\ConstraintViolationList is serialized so I wrote my own custom handler. An...
Dullish asked 22/6, 2016 at 20:35
2
Solved
I am getting this message:
Invalid datetime "2017-11-07T19:46:57.118Z", expected format Y-m-d\\TH:i:sP.
When using JMS Serializer and the config:
jms_serializer:
handlers:
datetime:
default_...
Naphthalene asked 7/11, 2017 at 14:50
2
When trying to serialize a model that uses traits, JMSSerializer does not serialize properties included by that trait. I am using yaml to configure the serializer but it seems that it's not working...
Withers asked 14/11, 2014 at 17:59
2
Solved
As the title says, I am trying to make a run-time decision on whether or not to include fields in the serialization. In my case, this decision will be based on permissions.
I am using Symfony 2, s...
Encasement asked 20/2, 2014 at 18:27
2
Solved
I am assembling an XML file based on an XSD that requires an XML container element to be present, even if it is empty.
When I try to serialize an empty array, using JMS serializer, with configurat...
Handiness asked 29/3, 2017 at 9:13
2
Solved
I'm trying to write a REST API which consumes a JSON from a PUT request in Symfony2. Deserializing the JSON to an entity sort of works – but the JMS Serializer seems to coerce types from the JSON i...
Graceless asked 19/2, 2016 at 10:3
2
Solved
Imagine I have a simple object, structured similarly to the one below:
Object (SomeClass) {
$someOtherData (array) [
...
]
$data (array) [
"key": "value",
"key": "value",
"key": "value",
...
Claycomb asked 10/9, 2014 at 11:22
1
© 2022 - 2024 — McMap. All rights reserved.