7
Answers

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

San

San

5y
2.4k
1
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)