Hi,
i like to get the the text of newest comment from a work item in DevOps (Feature or User Story).
The text of the comment then will be merged into a html table which is going to be send via email.
How do I extract the text from the http request output?
MS Docu:
Comments - Get Comments - REST API (Azure DevOps Work Item Tracking) | Microsoft Docs
My http request:

My output of the http request:
{
"totalCount": 6,
"count": 1,
"comments": [
{
"mentions": [
{
"artifactId": "XXX",
"artifactType": "Person",
"commentId": XXX,
"targetId": "XXX"
}
],
"workItemId": XXX,
"id": XXX,
"version": 1,
"text": "<div><a href=\"#\" data-vss-mention=\"version:2.0,XXXXXX\">XXXX</a>TEST TEST TEST</div><div><br> </div>",
"createdBy": {
"displayName": "XXX",
"url": "XXXXX",
"_links": {
"avatar": {
"href": "https://dev.azure.com/XXXX"
}
},
"id": "XXXX",
"uniqueName": "XXXXX",
"imageUrl": "https://dev.azure.com/XXXX",
"descriptor": "XXXX"
},
"createdDate": "XXXXX",
"modifiedBy": {
"displayName": "XXXXX",
"url": "XXXXX",
"_links": {
"avatar": {
"href": "https://dev.azure.com/XXXX"
}
},
"id": "XXXX",
"uniqueName": "XXXXX",
"imageUrl": "XXXXX",
"descriptor": "XXXX"
},
"modifiedDate": "XXXX",
"url": "XXX"
}
],
"nextPage": "XXX",
"continuationToken": "XXXX"
}