private function parserEventJson($jsonevent) { $event = null; //convert to php object $php_object = json_decode($jsonevent); if ($php_object != null) { $event = new Event($php_object->CreatorId, $php_object->Title, $php_object->Venue, $php_object->privacy); $event->setCurrencyCountry($php_object->current_country); $event->setSearchableKeywords($php_object->search_keywords); $event->setFees($php_object->fees); $event->setCurrencyCountry($php_object->current_country); $event->setCurrencyCountry($php_object->current_country); $event->setDescription($php_object->Description); $event->setStartDate($php_object->StartDate); $event->setGoing($php_object->going); } return $event; }