HomePhabricator

In JSON DocumentEngine, preserve the distinction between "{}" and "[]"

Description

In JSON DocumentEngine, preserve the distinction between "{}" and "[]"

Summary:
Ref T13635. Currently, the JSON DocumentEngine uses "phutil_json_decode()", but this can confuse "{}" and "[]".

Be more careful about how the JSON value is decoded, to preserve the distinction.

Test Plan:

Screen Shot 2021-03-11 at 11.52.09 AM.png (201×790 px, 70 KB)

Maniphest Tasks: T13635

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