Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse ()
라는 에러를 접했다. 구글에 검색해보니 '' 작은 따옴표 말고, "" 쌍따옴표 안에 정확하게 입력하던가, undefined 된 객체를 입력한 것이 아닌지 체크해야했다.
''
""
undefined
https://jamesdreaming.tistory.com/171 스택 오버플로우