Page MenuHomePhabricator

Improve "PhutilJSON" handling of PHP-object JSON values
ClosedPublic

Authored by epriestley on Thu, Mar 11, 7:22 PM.

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.Thu, Mar 11, 8:43 PM
This revision was automatically updated to reflect the committed changes.