Difusion displays empty json object as array

Reproduction Instructions:

Commit a json file with the following contents:
“a”: {},
“b”: []

View the file in Diffusion and notice that “a” is shown as an array instead of an empty object.
Note that in the Differential code review, the file is displayed correctly.

Phabricator Version: 1af79d93a9506faf5b8363b6a082ed783cdc5243

Thanks! I filed this upstream as https://secure.phabricator.com/T13635.

I think this should be fixed by https://secure.phabricator.com/D21604 + https://secure.phabricator.com/D21605, both now in master.

(As a (not great) workaround in the meantime, you should be able to use “View Options > View As Source” to view the raw source document instead of formatted JSON.)