Page MenuHomePhabricator

Fix the handling of empty keys in `PhutilJSONParser`.
ClosedPublic

Authored by joshuaspence on Jun 20 2014, 12:21 AM.
Tags
None
Referenced Files
F15513935: D9633.id23112.diff
Thu, Apr 17, 11:01 PM
F15485408: D9633.id.diff
Wed, Apr 9, 11:31 PM
F15483618: D9633.id23112.diff
Wed, Apr 9, 1:28 PM
F15482512: D9633.id23110.diff
Wed, Apr 9, 5:55 AM
F15479406: D9633.diff
Tue, Apr 8, 6:53 AM
F15455368: D9633.id23110.diff
Sat, Mar 29, 11:54 PM
F15453736: D9633.diff
Sat, Mar 29, 1:59 PM
F15390138: D9633.diff
Mar 15 2025, 5:56 AM
Subscribers

Details

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.

Diff Detail

Repository
rPHU libphutil
Branch
json2.5
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1251
Build 1251: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Fix the handling of empty keys in `PhutilJSONParser`..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 20 2014, 12:26 AM