Есть такой json ответ от апи. Как получить его значения? Пробовал вот так
dynamic userId = JsonConvert.DeserializeObject(data);
Получается непонятно что. Вот json:
{
"data": {
"id": "cde0bc5f-8602-4e12-b5d3-f03436b54c0d",
"first_name": "Erlich",
"last_name": "Bachman",
"salutation": "Mr",
"emails": [
{
"type": "primary",
"email": "info@piedpiper.eu"
}
],
"telephones": [
{
"type": "phone",
"number": "092980615"
}
],
"website": "https://piedpiper.com",
"addresses": [
{
"type": "invoicing",
"address": {
"addressee": "Teamleader HQ",
"line_1": "Dok Noord 3A 101",
"postal_code": "9000",
"city": "Ghent",
"country": "BE"
}
}
],
"gender": "male",
"birthdate": "1987-04-25",
"iban": "BE12123412341234",
"bic": "BICBANK",
"national_identification_number": "00051730-A",
"companies": [
{
"position": "CEO",
"decision_maker": true,
"company": {
"type": "company",
"id": "40157f9d-1322-4f2e-b245-188efdc52cc2"
}
}
],
"language": "en",
"payment_term": {
"type": "cash"
},
"invoicing_preferences": {
"electronic_invoicing_address": null
},
"remarks": "First contact at expo",
"tags": [
"prospect",
"expo"
],
"custom_fields": [
{
"definition": {
"type": "customFieldDefinition",
"id": "bf6765de-56eb-40ec-ad14-9096c5dc5fe1"
},
"value": "092980616"
}
],
"marketing_mails_consent": false,
"added_at": "2016-02-04T16:44:33+00:00",
"updated_at": "2016-02-05T16:44:33+00:00",
"web_url": "https://app.teamleader.eu/contact_detail.php?id=cde0bc5f-8602-4e12-b5d3-f03436b54c0d"
}
}