Page MenuHomePhabricator

Improve "PhutilJSON" handling of PHP-object JSON values
ClosedPublic

Authored by epriestley on Mar 11 2021, 7:22 PM.
Tags
None
Referenced Files
F15310737: D21604.diff
Thu, Mar 6, 9:24 AM
Unknown Object (File)
Sun, Mar 2, 4:32 PM
Unknown Object (File)
Thu, Feb 27, 8:15 AM
Unknown Object (File)
Thu, Feb 27, 1:17 AM
Unknown Object (File)
Wed, Feb 26, 8:54 AM
Unknown Object (File)
Wed, Feb 19, 7:43 PM
Unknown Object (File)
Thu, Feb 13, 2:31 AM
Unknown Object (File)
Feb 7 2025, 3:09 AM
Subscribers
None

Details

Summary

Ref T13635. PHP native JSON functions sometimes represent JSON objects as PHP "stdClass" objects.

Accept this representation and emit it correctly in "PhutilJSON".

Test Plan

Added a test, made it pass.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 11 2021, 8:43 PM
This revision was automatically updated to reflect the committed changes.