if i do this->
fetch(
//something,
options
)
.then((response) => response.json() )
it gives me error 'SyntaxError: Unexpected end of JSON input in fetch api' but if i remove .json() after response like->
fetch(
//something,
options
)
.then((response) => response )
it stops throwing error. can anyone explain me the issue