First of all, you do not need to send the name property as that was not asked of you.
Second, you are not sending JSON syntax. You did send a literal object, but you were supposed to send JSON. There is a slight difference. See if you can research what the difference is and make the correct changes to what you send.
Can you be more clear please. I practicaly understand that JSON part but I don’t understand what should I do with JSON on this challenge. On challenge 21 I do
approximate same thing and it pass.
.end{
assert.equal("res.status": 200, 'response status should be 200'),
assert.equal("res.type": 'application/json', "Response should be json"),
assert.equal("res.body.name": 'Giovanni', 'res.body.name should be "Giovanni"'),
assert.equal("res.body.surname": 'da Verrazzano', 'res.body.surname should be "da Verrazzano"' )
};
Methods are functions and to execute a function, you do not put functionName{. You have the wrong syntax here.
I suggest reviewing this previous challenge which shows the correct use of the end method. It also shows how to check the status and string related responses. Your asserts are not using proper syntax.
Extra Hint:"res.body.name" is just a string. It does not represent the response’s body.name.