diff --git client/hosting_client.module client/hosting_client.module
index c467888..3fda20a 100644
--- client/hosting_client.module
+++ client/hosting_client.module
@@ -589,6 +589,6 @@ function hosting_client_autocomplete($type, $keyword) {
     }
   }
  
-  print drupal_to_js($matches);
+  drupal_json($matches);
   exit();
 }
diff --git site/hosting_site.module site/hosting_site.module
index 4e05f6d..e785acf 100644
--- site/hosting_site.module
+++ site/hosting_site.module
@@ -893,7 +893,7 @@ function _hosting_site_form_populate($element, $value, $value2 = null) {
   $GLOBALS['devel_shutdown'] = FALSE;
   $form_state = array();
   $built = form_builder('hosting_site_form', $form, $form_state);
-  print drupal_to_js(
+  drupal_json(
     array(
       'status' => 'TRUE',
       'type' => $form[$element]['#type'],
