HomePhabricator

Fix the handling of empty keys in `PhutilJSONParser`.

Description

Fix the handling of empty keys in PhutilJSONParser.

Summary:
Because the empty string is not a valid property of stdClass, the original JsonLint library replaced empty keys with '_empty_'. After D9623, all instances of stdClass have been replaced by arrays, so we can remove this nonsense.

Depends on D9623.

Test Plan: Added a test case and ran arc unit.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: epriestley, Korvin

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Jun 20 2014, 12:27 AM
Reviewer
Blessed Reviewers
Differential Revision
D9633: Fix the handling of empty keys in `PhutilJSONParser`.
Parents
rPHUdd7f571b61ed: Modify the JsonLint library to return `array` instead of `stdClass`.
Branches
Unknown
Tags
Unknown

Event Timeline