diff --git a/class/serialisation.php b/class/serialisation.php index 8177c60..da4efb0 100644 --- a/class/serialisation.php +++ b/class/serialisation.php @@ -1,15 +1,15 @@ log_message('Getting serialiser', __FUNCTION__, CS_REST_LOG_VERBOSE); if(function_exists('json_decode') && function_exists('json_encode')) { return new CS_REST_NativeJsonSerialiser($log); } else { + if (!class_exists('Services_JSON', false)) { + require_once dirname(__FILE__).'/services_json.php'; + } + return new CS_REST_ServicesJsonSerialiser($log); } }