Last modified: 2009-02-18 14:24:24 UTC
Empty lists as output from many modules are shown as null rather than as an empty tag. Reported at <http://lists.wikimedia.org/pipermail/wikitech-l/2009-February/041534.html> Test case: <http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcend=0> Expected XML: <api> <query> <recentchanges /> </query> </api> Expected JSON: { "query": { "recentchanges": [ ] } } Actual XML: <api> <query recentchanges="" /> </api> Actual JSON: { "query": { "recentchanges": null } }
My proposed fix in r47447 will be live shortly as a temporary fix, pending review by someone more knowledgeable.
(In reply to comment #1) > My proposed fix in r47447 will be live shortly as a temporary fix, pending > review by someone more knowledgeable. > Looks good to me.