Page MenuHomePhabricator

Empty event appears as [], not {}
Closed, ResolvedPublic

Description

An empty event array is serialized to JSON as [], instead of {}.


Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=65607

Details

Reference
bz65385

Event Timeline

bzimport raised the priority of this task from to High.
bzimport set Reference to bz65385.

Cast empty server-side events to object
Change-Id: If7c155860d6acb596ffc1529f1653dc5aea0b91f

(In reply to Krinkle from comment #1)

> Cast empty server-side events to object
> Change-Id: If7c155860d6acb596ffc1529f1653dc5aea0b91f

Is it possible to fix bug 10887 in the same way?

(In reply to Liangent from comment #2)

Is it possible to fix bug 10887 in the same way?

Possibly. I commented there.

Change 134993 had a related patch set uploaded by Ori.livneh:
Cast empty server-side events to object

https://gerrit.wikimedia.org/r/134993

Change 134993 merged by Nuria:
Cast empty server-side events to object

https://gerrit.wikimedia.org/r/134993