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
F19954431: D21604.diff
Tue, Apr 21, 10:25 AM
F19870994: D21604.diff
Mar 15 2026, 9:13 AM
F19813074: D21604.diff
Mar 4 2026, 7:35 AM
F19792546: D21604.diff
Feb 26 2026, 12:22 PM
F19607119: D21604.diff
Feb 3 2026, 10:34 AM
F19512048: D21604.id51433.diff
Jan 12 2026, 11:30 AM
F19019233: D21604.id.diff
Nov 23 2025, 1:55 PM
F18993033: D21604.diff
Nov 19 2025, 5:18 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.