Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON-encode empty arrays properly #138

Merged
merged 3 commits into from
Mar 4, 2021
Merged

Conversation

shalvah
Copy link
Contributor

@shalvah shalvah commented Feb 26, 2021

Status

READY

Description

See #137 — /PHP's multitasking arrays (they're lists, maps, and everything in between) strike again! Fixed by setting the key to an object rather than array when empty.

Copy link
Member

@joshuap joshuap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM

@shalvah shalvah merged commit fa4b572 into master Mar 4, 2021
@shalvah shalvah deleted the encode-empty-maps-correctly branch March 4, 2021 20:12
@shalvah
Copy link
Contributor Author

shalvah commented Mar 4, 2021

Tested and verified ✅
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants