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)
Fri, Sep 4, 11:04 PM
Unknown Object (File)
Aug 14 2026, 7:54 PM
Unknown Object (File)
Jul 29 2026, 11:54 PM
Unknown Object (File)
Jun 22 2026, 12:59 PM
Unknown Object (File)
Jun 20 2026, 3:56 AM
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
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.