Changed handling of JSON decoding when expected response is an array
Merge pull request #2 from pedronofuentes/master

Changed handling of JSON decoding when expected response is an array