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
Unknown Object (File)
Thu, Apr 11, 8:21 AM
Unknown Object (File)
Mon, Apr 8, 8:30 AM
Unknown Object (File)
Sun, Apr 7, 7:59 PM
Unknown Object (File)
Mar 17 2024, 6:01 PM
Unknown Object (File)
Feb 21 2024, 6:26 AM
Unknown Object (File)
Feb 21 2024, 6:26 AM
Unknown Object (File)
Feb 21 2024, 6:26 AM
Unknown Object (File)
Jan 27 2024, 2:34 PM
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.