diff --git a/webservices/rest.php b/webservices/rest.php index 05e301a014..cf943b195a 100644 --- a/webservices/rest.php +++ b/webservices/rest.php @@ -117,7 +117,7 @@ try { throw new Exception("Missing parameter 'json_data", RestResult::MISSING_JSON); } - $aJsonData = json_decode($sJsonString); + $aJsonData = @json_decode($sJsonString); if ($aJsonData == null) { throw new Exception("Parameter json_data is not a valid JSON structure", RestResult::INVALID_JSON);