diff --git a/bmltnotify.php b/bmltnotify.php
index dbd7dc7..f60e8ec 100644
--- a/bmltnotify.php
+++ b/bmltnotify.php
@@ -11,16 +11,16 @@
// show beginning header
$message = "
" .$service_body_name. " CHANGES
Changes for last $howmanydays day(s) from " .date("l jS \of F Y h:i A") . "
";
-$url = $bmlt_server. "/client_interface/xml/?switcher=GetChanges&start_date=" .$dateminus. "&end_date=" .$today. "&service_body_id=" .$notify_service_body_id;
+$url = $bmlt_server. "/client_interface/json/?switcher=GetChanges&start_date=" .$dateminus. "&end_date=" .$today. "&service_body_id=" .$notify_service_body_id;
-// get xml file contents
-$xml = simplexml_load_file($url);
+$json = file_get_contents($url);
-if (empty($xml)) {
+if (empty($json)) {
// if no changes found do nothing
} else {
// loop begins
- foreach ($xml->row as $row) {
+ $json = json_decode($url);
+ foreach ($json as $row) {
if (strpos($row->meeting_name, '_YAP_') !== false) {
// dont show YAP data
} else {