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.
Description
Description
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Resolved | Lydia_Pintscher | T73170 [Story] Ensure feature parity of serialization based on WikibaseDataModelSerialization with what we do with WikibaseLib | ||
Invalid | None | T98860 [Task] DataModelSerialization: always force maps to be represented as stdclass objects when generating JSON output. | ||
· · · |
Event Timeline
Comment Actions
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!