Home GnuPG

Provide phutil_json_encode()
3753a09dfc7eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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

Provenance
epriestley <git@epriestley.com>Authored on Jul 7 2015, 2:55 PM
Parents
rPHUTILd8a63d8c2907: Add a `pregsprintf` function
Branches
Unknown
Tags
Unknown

Event Timeline

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