Description
Currently if processor is given an output from json_decode($value), an stdClass is casted to array in case it's in place of a MappedObjectValue. But stdClass makes sense to handle also in case of an ArrayOf and a ListOf.
Handling should be also available in Value in case printer decides to print an invalid value.
We should also consider that fix on user side is as simple as json_decode($value, true) and that it may work only for some formats:
- neon may use an entity which extends
stdClass and adds an extra properties.
- xml may be returned as e.g. a
SimpleXMLElement and we have no way of casting it to an array, handling attributes or printing errors while maintaining the original xml structure
Addition information
No response
Related issues
No response
Description
Currently if processor is given an output from
json_decode($value), anstdClassis casted toarrayin case it's in place of aMappedObjectValue. ButstdClassmakes sense to handle also in case of anArrayOfand aListOf.Handling should be also available in
Valuein case printer decides to print an invalid value.We should also consider that fix on user side is as simple as
json_decode($value, true)and that it may work only for some formats:stdClassand adds an extra properties.SimpleXMLElementand we have no way of casting it to an array, handling attributes or printing errors while maintaining the original xml structureAddition information
No response
Related issues
No response