Skip to content

Add feature to export Resource instances as Array or JSON #306

@travisfisher-pdi

Description

@travisfisher-pdi

Resource classes push their data into the protected "fields" property, making it difficult to extract the data.

It would be nice if the Resource class could make use of PHP's "__serialize()" magic method to bring that data out to, at a minimum, a PHP array.

An alternative might be just to create a "toJSON()" method on the Resource class and provide real JSON output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions