Last modified: 2012-12-09 16:01:22 UTC
For example http://en.wikipedia.org/w/api.php?action=query&prop=revisions&format=jsonfm&rvprop=content&generator=random Bug 21922 has another example the * key of the revisions object makes it impossible to use the dot notation to access its properties from Javascript, e.g. revisions.* -- one has to resort to ["*"] instead. This is not a big deal, of course, but using a different character would make both access methods available. For example, $ or _ ( see http://stackoverflow.com/questions/1661197/valid-characters-for-javascript-variable-names ) are valid variable names in javascript, and they would enable usage of revisions.$ instead of revisions['*']
Well, it would remove the similarity with the XML output, which is presumably why we have * in the first place. Also, this would be a breaking change...?
I'm inclined to WONTFIX this, as it's trivial to work around, would be a major breaking change to the API, and even the reporter states it "is not a big deal". Is there any advantage here besides preferring to use dot notation instead of bracket notation, that would be worth a major breaking change to the API?
See also bug 31629
(In reply to comment #3) > See also bug 31629 Thanks, Umherirrender. This seems to be a dupe of that bug, so I'll continue discussion there. *** This bug has been marked as a duplicate of bug 31629 ***