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)
Jun 3 2025, 1:52 PM
Unknown Object (File)
Jun 2 2025, 10:37 AM
Unknown Object (File)
Apr 29 2025, 8:52 AM
Unknown Object (File)
Apr 27 2025, 7:58 PM
Unknown Object (File)
Apr 27 2025, 7:58 PM
Unknown Object (File)
Apr 25 2025, 4:25 PM
Unknown Object (File)
Apr 17 2025, 7:12 PM
Unknown Object (File)
Apr 15 2025, 11:44 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.