Skip to content

Handling stdClass and other datasource objects #67

@mabar

Description

@mabar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions