"Uncaught SyntaxError: Unexpected token u in JSON at position 0"の対処法
Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>)
環境
Node.js (v8.10.0)
対処法
上記のエラーが出た時は、どこかでundefinedのものをJSON.parse()してしまっている。丁寧に処理を追いかけ、原因発生箇所を見つける。