Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Associative array is not encoded into an object using json_encode. #26

Description

@Maxwell175

Hello,

I found that if an associative array is returned from a foreign function and passed into json_encode, it returns an array instead of an object unless I add JSON_FORCE_OBJECT. This is not the correct behaviour. Associative arrays are supposed to encode into json objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions