San

San

  • NA
  • 804
  • 326.8k

ERROR SyntaxError: "JSON.parse: unexpected character at line

Apr 1 2019 9:27 AM
ERROR SyntaxError: "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
 
Below my code :
 
this.MyService.getToken(this.Token).subscribe(result=> {
this.TokenData=result;
});
 
Note:In getToken() i calling one web service and this service return data in below format
 
Token( { "action" : "PE", "data" : "11111111111111" } )
 
How to resolve this ?

Answers (7)