diff --git a/class/serialisation.php b/class/serialisation.php index 8177c60..dd3451e 100644 --- a/class/serialisation.php +++ b/class/serialisation.php @@ -1,9 +1,5 @@ log_message('Getting serialiser', __FUNCTION__, CS_REST_LOG_VERBOSE); @@ -107,6 +103,10 @@ class CS_REST_ServicesJsonSerialiser extends CS_REST_BaseSerialiser { function __construct($log) { parent::__construct($log); + if (!class_exists('Services_JSON', false)) { + require_once dirname(__FILE__).'/services_json.php'; + } + $this->_serialiser = new Services_JSON(); }