Fix issue with JSON

JSON coming back from my webserver with response type application/json was coming to the parseJSON function as a JSON object already, so attempting to parse it again was causing bugs.

This happened since upgrading from 2.0.4

I might have missed the point or done something wrong, I haven't spent long investigating this so far