Page MenuHomePhabricator

[Task] DataModelSerialization: always force maps to be represented as stdclass objects when generating JSON output.
Closed, InvalidPublic

Description

To make sure empty maps are represented as {} and not [] in JSON, maps should be stdclass objects, not associative arrays. This behavior should be the default, and perhaps even be always on. We should find out if there is any use case that requires associative arrays.

Related Objects

StatusAssignedTask
Declineddchen
OpenNone
OpenNone
DuplicateNone
OpenNone
ResolvedAbit
OpenNone
DuplicateNone
OpenNone
OpenNone
OpenNone
DuplicateNone
InvalidLydia_Pintscher
OpenNone
OpenNone
OpenNone
OpenNone
StalledNone
ResolvedBene
OpenNone
ResolvedJanZerebecki
OpenNone
OpenNone
Resolvedthiemowmde
OpenNone
DeclinedBene
ResolvedBene
ResolvedBene
ResolvedBene
ResolvedAddshore
OpenNone
InvalidNone
Resolveddaniel
ResolvedBene
DeclinedBene

Event Timeline

daniel created this task.May 12 2015, 2:03 PM
daniel raised the priority of this task from to High.
daniel updated the task description. (Show Details)
daniel added subscribers: Bene, Wikidata-bugs, Tobi_WMDE_SW and 4 others.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 12 2015, 2:03 PM
JanZerebecki lowered the priority of this task from High to Normal.May 16 2015, 5:19 PM
JanZerebecki set Security to None.

This blocks "WikibaseDataModelSerialization with what we do with WikibaseLib" and although we have totally removed the Lib Serialization I would not consider this task complete in regards to WikibaseDataModelSerialization..

Currently there is an option in datamodel serialization!

Jonas renamed this task from DataModelSerialization: always force maps to be represented as stdclass objects when generating JSON output. to [Task] DataModelSerialization: always force maps to be represented as stdclass objects when generating JSON output..Aug 15 2015, 12:22 PM
Lydia_Pintscher closed this task as Invalid.Apr 23 2017, 4:50 PM