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
F19019233: D21604.id.diff
Sun, Nov 23, 1:55 PM
F18993033: D21604.diff
Wed, Nov 19, 5:18 AM
F18848147: D21604.id51433.diff
Oct 30 2025, 3:33 AM
F18841452: D21604.diff
Oct 28 2025, 9:13 AM
F18835797: D21604.id51431.diff
Oct 26 2025, 6:48 PM
F18820793: D21604.diff
Oct 22 2025, 5:07 PM
F18808932: D21604.diff
Oct 19 2025, 9:49 AM
F18783750: D21604.id51433.diff
Oct 13 2025, 9:16 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.