Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$http.get and null responses from endpoints #2191

@JamieMason

Description

@JamieMason

$http.get(endpoint).then(function(response) {
// here...
});

If the response body is {"yum":"dinner"} then response.data is an Object, fine.

If the server response body is null then response.data is a String "null".

Should it not be an actual null, since JSON.parse("null") === null?

Thanks for your time, please address/close as desired.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions