Homec4science

Provide phutil_json_encode()

Authored by epriestley <git@epriestley.com> on Jul 7 2015, 14:55.

Description

Provide phutil_json_encode()

Summary:
Ref T8672. Various issues like T8672 and T5955 are more difficult to understand and debug because we are not careful about checking for JSON encoding errors.

Add an error checking JSON encoder. This will let us raise an issue at the source of the problem, instead of further down the pipeline.

Test Plan: Added and executed unit tests.

Reviewers: btrahan, joshuaspence

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8672

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

Details

Committed
epriestley <git@epriestley.com>Jul 7 2015, 14:55
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUd8a63d8c2907: Add a `pregsprintf` function
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU3753a09dfc7e: Provide phutil_json_encode() (authored by epriestley <git@epriestley.com>).Jul 7 2015, 14:55