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
F15409478: D21604.id51433.diff
Wed, Mar 19, 4:34 AM
F15387876: D21604.id51431.diff
Sat, Mar 15, 3:03 AM
F15378847: D21604.id51433.diff
Thu, Mar 13, 5:19 PM
F15310737: D21604.diff
Thu, Mar 6, 9:24 AM
Unknown Object (File)
Sun, Mar 2, 4:32 PM
Unknown Object (File)
Thu, Feb 27, 8:15 AM
Unknown Object (File)
Thu, Feb 27, 1:17 AM
Unknown Object (File)
Wed, Feb 26, 8:54 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
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.