HomePhabricator

Utilize `phutil_json_decode`

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

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Apr 5 2015, 12:35 PM
Reviewer
Blessed Reviewers
Differential Revision
D12284: Utilize `phutil_json_decode`
Parents
rPHU9a6d307d2a58: Fix linter issues in a `@nolint` file
Branches
Unknown
Tags
Unknown