Hi,
Using a HTTP request to GET data from an app via its API, I get the Json string below:
“{"Id":"11e62b7a-25c8-4190-bb12-c5f8bd87d0df","Status":"OK","ProviderName":"Health Accelerator App","DateTimeUTC":"/Date(1749441203880)/","Contacts":[{"ContactID":"db3cf355-60eb-426b-bfe1-b6f1081ac0f9","AccountNumber":"indici0001","ContactStatus":"ACTIVE","Name":"Acme Health","FirstName":"Phillip","LastName":"Duncan","EmailAddress":"phillip.duncan@acme.co.nz","Addresses":[{"AddressType":"POBOX","AddressLine1":"16 XXX Lane","AddressLine2":"Parnell","City":"Auckland","PostalCode":"1010","Country":"New Zealand"},{"AddressType":"STREET","AddressLine1":"16 XXX Lane","AddressLine2":"Parnell","City":"Auckland","PostalCode":"1010","Country":"New Zealand"}],"Phones":[{"PhoneType":"DDI"},{"PhoneType":"DEFAULT"},{"PhoneType":"FAX"},{"PhoneType":"MOBILE"}],"UpdatedDateUTC":"/Date(1749086743507+0000)/","ContactGroups":,"IsSupplier":false,"IsCustomer":true,"Balances":{"AccountsReceivable":{"Outstanding":130.98,"Overdue":130.98},"AccountsPayable":{"Outstanding":0.0,"Overdue":0.0}},"ContactPersons":,"HasAttachments":false,"HasValidationErrors":false}]}”
(This is test data, by the way - no confidentiality / privacy issue here…)
What I am after extracting is the ContactID value.
I have tried to deserialize the string into a JObject, but I am unsure from get to ContactID token’s value there how to, especially as it is inside an array in the string.
Any help will be much appreciated!