Transform ajax response to json only if no responseType specified or if this responseType is specifically json

I realize that even if I send a request with a responseType="text", angular would transform response into an object if it looks like json.

I think angular should do that only the responseType is absent or if it is === "json"

That's what this pull request is doing