# Webhook

**URL:** <https://community.hubspot.com/t/webhook/25441>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [September 14, 2020, 3:55pm UTC](https://community.hubspot.com/t/webhook/25441 "2020-09-14T15:55:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![sujatabh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sujatabh/32/33328_2.png) [@sujatabh](https://community.hubspot.com/u/sujatabh)\
**Post date:** [September 28, 2020, 3:42pm UTC](https://community.hubspot.com/t/webhook/25441/7 "2020-09-28T15:42:51Z")

</div>

It is solved from the reference URL- [https://community.hubspot.com/t5/APIs-Integrations/Webhook-JSON-Understanding-Extracting-Data/td-p/226257](https://community.hubspot.com/t5/APIs-Integrations/Webhook-JSON-Understanding-Extracting-Data/td-p/226257)

I have used the code -

$json = file\_get\_contents(‘php://input’);

// Converts it into a PHP object  
$json = json\_decode($json, true);  
//get lastname, firstname, email from array  
if(is\_array($json)){  
$lastname = $json[‘properties’][‘lastname’][‘value’];  
$firstname = $json[‘properties’][‘firstname’][‘value’];  
$mobilephone = $json[‘properties’][‘mobilephone’][‘value’];  
$email = $json[‘properties’][‘email’][‘value’];  
$vid = $json[‘vid’]; // vid; contact specific identifier  
}

and got the solution

---

_[View the full topic](https://community.hubspot.com/t/webhook/25441)._
