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
F14109693: D9633.diff
Wed, Nov 27, 3:06 PM
F14103243: D9633.id.diff
Tue, Nov 26, 9:29 PM
Unknown Object (File)
Sun, Nov 24, 2:58 AM
Unknown Object (File)
Sat, Nov 23, 7:28 AM
Unknown Object (File)
Mon, Nov 18, 10:38 PM
Unknown Object (File)
Thu, Nov 14, 10:52 PM
Unknown Object (File)
Mon, Nov 11, 12:16 AM
Unknown Object (File)
Wed, Nov 6, 7:04 PM
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