I have a simple Angular 4 application which is contacting a HTTP REST server and this server is simply returning a JSON payload and I would like to display this JSON payload as
You can use the json pipe. In your template:
Data Obtained is: {{ data | json }}
Also you have to change the type of your data property to any instead of string.
data
any
string