Skip to content
Advertisement

How to fix Unexpected token o in JSON at position 1 using JavaScript?

This question is seems to be already answered but my scenario is different. I am getting Unexpected token o in JSON at position 1 everytime. Can anyone help me to fix this.Thanks

here is my code

JavaScript

Advertisement

Answer

add json() let data = res.json();

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement