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
F14084263: D9633.diff
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
Unknown Object (File)
Oct 22 2024, 8:29 AM
Unknown Object (File)
Oct 21 2024, 8:40 PM
Unknown Object (File)
Oct 16 2024, 1:08 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
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