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
Unknown Object (File)
Fri, May 3, 6:14 AM
Unknown Object (File)
Mon, Apr 29, 3:31 PM
Unknown Object (File)
Sun, Apr 28, 12:02 PM
Unknown Object (File)
Fri, Apr 26, 5:46 PM
Unknown Object (File)
Thu, Apr 25, 9:34 PM
Unknown Object (File)
Wed, Apr 24, 10:25 PM
Unknown Object (File)
Tue, Apr 23, 6:55 PM
Unknown Object (File)
Sat, Apr 20, 7:07 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
Lint
Lint Skipped
Unit
Tests Skipped

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