I am trying to use HTTP.get to make a remote api call then try to parse the returned json. However, the returned json object always has a corrupted content. Is it because the api call is https? Can someone please help?
I have put the snippet on meteorpad to demonstrate this issue.
Basically just pick a player then hit the “Add 5 points” link. The console output of result.content is corrupted somehow. If I tried to do JSON.parse(result.content), always get an unexpected token exception. Any help would be appreciated.