Convert JSON to a PHP object
{
"firstName": "Temuri",
"lastName": "Takalandze",
"active": true,
"position": {
"title": "Developer",
"department": {
"title": "IT"
}
}
}
<?phpclass Department
{
/**
* @var string
*/
private $title;

Temuri Takalandze

Software Engineer, having over 4 years of experience in Back-End development; The author of several PHP libraries and Drupal modules; Open Source Contributor.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store