Get json property/value inside a promise function

I need to get the JSON values, but there is an error that says “user doesn’t exists in the Object type”:

My function:

	search(path): Promise<any> {
		return this.http.get(path)
			response => {           // Success
				if (response != false) {'user', JSON.stringify(response));'alerts', 920);

					console.log(response.user.age); ///<---- Here the error

					return response;
				} else {
					return null;
			error => {              // Error
				return null;

Just need to specify the field of the json

Not best. Use Angular’s HttpClient. Check it out.