Difference between response.json() and JSON.stringify(response)

Hello everyone! This is my first post so i´ll try to be brief and concise.

I´m finishing the “Learn Request” module in the “Web development” career path, and I still have one doubt. What´s the difference between using response.json() and JSON.stringify(response)?

I´ve seen that the first one is used on GET requests and the second one in POST requests, but I don´t understand why yet.

Thanks in advance!

1 Like