Homec4science

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

Authored by Joshua Spence <josh@joshuaspence.com> on Jun 20 2014, 02:22.

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

Committed
Joshua Spence <josh@joshuaspence.com>Jun 20 2014, 02:22
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU5559a21fe307: Add a native JSON parser.
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rPHUdd7f571b61ed: Modify the JsonLint library to return `array` instead of `stdClass`. (authored by Joshua Spence <josh@joshuaspence.com>).Jun 20 2014, 02:22