Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
F15531964: D12284.id.diff
Wed, Apr 23, 2:00 PM
F15531782: D12284.id29487.diff
Wed, Apr 23, 12:56 PM
F15528718: D12284.diff
Tue, Apr 22, 1:24 PM
F15487530: D12284.id.diff
Thu, Apr 10, 2:55 PM
F15465701: D12284.id.diff
Wed, Apr 2, 10:13 PM
F15461752: D12284.id29507.diff
Tue, Apr 1, 11:00 AM
F15420839: D12284.id29506.diff
Mar 21 2025, 6:13 PM
F15416451: D12284.id29507.diff
Mar 20 2025, 11:10 AM
Subscribers

Details

Summary

Use phutil_json_decode instead of json_decode to throw a more tailored exception.

Test Plan

Broke xhpast to return invalid JSON... saw a PhutilProxyException thrown.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Utilize `phutil_json_decode`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Apr 5 2015, 12:20 PM
This revision was automatically updated to reflect the committed changes.