Skip to content

HttpResponse uses json_decode($body, true); - changes data with empty objects #264

Open
@MymmiJ

Description

@MymmiJ

HttpResponse.php using json_decode($body, true); means that empty objects get translated to arrays, which breaks some of our stuff.

We've extended DocumentHandler in order to override the getDocument method, but I think a better solution might be to provide the ability to decide whether an item is decoded into associative arrays or objects, as this was not obvious default behaviour to us.

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