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)
Tue, Nov 26, 6:55 PM
Unknown Object (File)
Fri, Nov 22, 3:41 PM
Unknown Object (File)
Thu, Nov 21, 8:55 PM
Unknown Object (File)
Mon, Nov 18, 10:35 AM
Unknown Object (File)
Wed, Nov 13, 9:26 PM
Unknown Object (File)
Sat, Nov 9, 11:27 PM
Unknown Object (File)
Wed, Nov 6, 1:39 AM
Unknown Object (File)
Oct 18 2024, 11:11 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.