Given the below JSON output, how could I end up with a simple string that is delimited by a character, maybe something like this: "The First Label~The Second Label". In the real example, there will be around 100 entries, but same format. Thanks!
{
"@odata.context": "https://my365.sharepoint.com/_api/v2.1/$metadata#termStores('root')/termGroups('2a6f2ca2-cba8-4c50-aa65-10144b870758')/termSets('53bccced-77aa-47c7-960b-3826191c4730')/terms('d95867d0-3a02-42ac-821d-55c77f90df82')/children",
"value": [
{
"id": "7f50bcc3-7055-4209-b739-0588c99d64fc",
"isDeprecated": false,
"childrenCount": 1,
"createdDateTime": "2022-02-15T17:53:57.567Z",
"lastModifiedDateTime": "2022-04-11T17:35:19.357Z",
"labels": [
{
"name": "The First Label",
"isDefault": true,
"languageTag": "en-US"
},
{
"name": "Label1",
"isDefault": false,
"languageTag": "en-US"
}
],
"descriptions": [],
"isAvailableForTagging": [
{
"setId": "142a45a6-a5d2-487b-a378-5349eaa77ecc",
"isAvailable": true
}
]
},
{
"id": "8aa8f51f-28bc-4098-abae-ddaf47694933",
"isDeprecated": false,
"childrenCount": 2,
"createdDateTime": "2022-02-15T17:50:43.04Z",
"lastModifiedDateTime": "2022-04-08T17:54:21.423Z",
"labels": [
{
"name": "The Second Label",
"isDefault": true,
"languageTag": "en-US"
},
{
"name": "Label2",
"isDefault": false,
"languageTag": "en-US"
}
],
"descriptions": [],
"isAvailableForTagging": [
{
"setId": "d87322f7-8bda-458f-adf2-c89153182564",
"isAvailable": true
}
]
}
]
}