You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
The issue persists for 1.0.8. The result is just the string "null" and the contentType header is "applcation/json". What I get is the string "null" instead of a null object. If I call angular.fromJson myself, I get the expected null object.
$http.get(endpoint).then(function(response) {
// here...
});
If the response body is
{"yum":"dinner"}
thenresponse.data
is an Object, fine.If the server response body is
null
thenresponse.data
is a String"null"
.Should it not be an actual
null
, sinceJSON.parse("null") === null
?Thanks for your time, please address/close as desired.
The text was updated successfully, but these errors were encountered: