Homec4science

Utilize `phutil_json_decode`

Authored by Joshua Spence <josh@joshuaspence.com> on Apr 5 2015, 14:34.

Description

Utilize phutil_json_decode

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.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D12284

Details

Committed
Joshua Spence <josh@joshuaspence.com>Apr 5 2015, 14:35
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU9a6d307d2a58: Fix linter issues in a `@nolint` file
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHU5a5966560e25: Utilize `phutil_json_decode` (authored by Joshua Spence <josh@joshuaspence.com>).Apr 5 2015, 14:35