Open paulmmay opened 12 years ago
If it's that straightforward, send me a pull request ;)
+1
Since the smiley apparently wasn't enough: no, it's not that straightforward. The code currently assumes that API responses are always XML and parses them accordingly to check for errors, warnings, continuation etc etc. It's thus not possible to "just" return JSON, because the library has no capability to understand anything other than XML at the moment, and I don't see any easy way of adding such capability.
But again, if you think you can make this happen, code contributions are more than welcome.
I think XML is fine and retrieving it in other forms might be outside the scope of this gem in that case.
Hello
Given that MediaWiki can return Json, XML and other more parseable formats - could you add this into the utils? It should be pretty straightforward.
Thanks