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
F15180386: D21604.diff
Wed, Feb 19, 7:43 PM
Unknown Object (File)
Thu, Feb 13, 2:31 AM
Unknown Object (File)
Fri, Feb 7, 3:09 AM
Unknown Object (File)
Sat, Feb 1, 5:38 PM
Unknown Object (File)
Fri, Jan 31, 6:01 PM
Unknown Object (File)
Mon, Jan 27, 7:41 AM
Unknown Object (File)
Tue, Jan 21, 4:07 PM
Unknown Object (File)
Jan 19 2025, 8:56 PM
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
Branch
json1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25238
Build 34832: Run Core Tests
Build 34831: arc lint + arc unit

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.