michaellavelle / spring-social-lastfm

LastFm API binding and connect support using Spring Social. This project adapts LastFm's APi to be pseudo-oauth so it can be used with ProviderSignInController and ConnectController - work in progress
9 stars 4 forks source link

Json binding error retrieving loved tracks when response contains only a single track #12

Closed michaellavelle closed 12 years ago

michaellavelle commented 12 years ago

LastFm return different structures for the Loved tracks response depending on whether response contains a single track or multiple tracks. For a single track the "track" Json element contains a map reprsenting a track. For multiple tracks the "track" Json element contains a list of maps. This causes a Json parse exception for single track responses