Continued on AJAX installer to start first step (more are easily to add)
[mailer.git] / inc / wrapper-functions.php
index 4bd75bad61b69e9995fd1858ff334ee9baf3e16a..4324ae39c9ebfd4c9805e5c99424d868b8e44a5d 100644 (file)
@@ -3348,5 +3348,11 @@ function wrapWords ($text) {
        return $wrapped;
 }
 
+// Encodes given data into a JSON object
+function encodeJson ($data) {
+       // Encode it
+       return json_encode($data, JSON_FORCE_OBJECT);
+}
+
 // [EOF]
 ?>