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