Why the project uses XML API?
Closed this issue · 3 comments
paulmillr commented
Last.FM has JSON API with format=json
paulmillr commented
@youpy ping.
I can rewrite the project with json if there's no reason because it's easier for debugging etc.
youpy commented
In 2 years ago, there was (maybe) a bug that a response returns as XML even if 'format=json'.
Another reason to use XML API is it's easiness to parse using xmlsimple and it's 'ForceArray' options.
So I rewrote whole project to use XML instead of JSON.
But if you find a better solution, patches are welcome!
glen-cheney commented
Came across this while writing a Last.fm app. Two years later and the Last.fm still returns XML instead of JSON sometimes even though format=json
. It seems to only happen to me when the response is very large.