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)
Apr 21 2026, 10:25 AM
Unknown Object (File)
Mar 15 2026, 9:13 AM
Unknown Object (File)
Mar 4 2026, 7:35 AM
Unknown Object (File)
Feb 26 2026, 12:22 PM
Unknown Object (File)
Feb 3 2026, 10:34 AM
Unknown Object (File)
Jan 12 2026, 11:30 AM
Unknown Object (File)
Nov 23 2025, 1:55 PM
Unknown Object (File)
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.