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 ?


Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 2, 2019, 1:15 AM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 1, 2019, 10:09 PM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 2, 2019, 12:45 AM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted Apr 2, 2019, 1:42 AM EDT
SanRank #1,770 · 846 reputationPosted Apr 2, 2019, 12:39 AM EDT
SanRank #1,770 · 846 reputationPosted Apr 2, 2019, 1:06 AM EDT
SanRank #1,770 · 846 reputationPosted Apr 2, 2019, 1:24 AM EDT