Non-empty "senses" and "forms" tags are presented as arrays in lexemes dumps. But empty lists are presented as objects.
How to reproduce
- Download https://dumps.wikimedia.org/wikidatawiki/entities/20220406/wikidata-20220406-lexemes.json.gz
- Unpack it. The first 1 Mb is enough.
- Try find "senses" tags.
Non-empty tags are presented as arrays:
"senses":[{"id":"L4-S1",...
But empty tags are looked as objects:
"senses":{}
Expected behavior
Empty lists should be presented as arrays also:
"senses":[]
Notes
Before completing this we must consider: