getOption(ConnectionOptions::OPTION_CHECK_UTF8_CONFORM) === true) { self::check_encoding($data); } $response = json_encode($data, $options | JSON_FORCE_OBJECT); return $response; } }