HomePhabricator

Modify the JsonLint library to return `array` instead of `stdClass`.

Description

Modify the JsonLint library to return array instead of stdClass.

Summary:
Summary :Ref T5297. Make PhutilJSONParser::parse($json) roughly approximate to json_decode($json, true). Generally when we parse JSON, we want the result to be an arrray, not a stdClass object.

Depends on D9622.

Test Plan: Wrote a few additional test cases.

Reviewers: Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T5297

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Jun 20 2014, 12:22 AM
Reviewer
Blessed Reviewers
Differential Revision
D9623: Modify the JsonLint library to return `array` instead of `stdClass`.
Parents
rPHU5559a21fe307: Add a native JSON parser.
Branches
Unknown
Tags
Unknown
Tasks
T5297: Create a native JSON parser.

Event Timeline