response => response.json()
means response => { return response.json(); }
for simplicity.
So, if you want to use curly bracket, use return
.
.then(response => {
return response.json();
})
.then( data => {
console.log(data["hello"]);
})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…