Revert "converting CRLF to LF"
[geo.git] / edit_wp5_web_folder / geo / selects / jsonwrapper_inner.php
diff --git a/edit_wp5_web_folder/geo/selects/jsonwrapper_inner.php b/edit_wp5_web_folder/geo/selects/jsonwrapper_inner.php
new file mode 100644 (file)
index 0000000..36a3f28
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+require_once 'JSON/JSON.php';
+
+function json_encode($arg)
+{
+       global $services_json;
+       if (!isset($services_json)) {
+               $services_json = new Services_JSON();
+       }
+       return $services_json->encode($arg);
+}
+
+function json_decode($arg)
+{
+       global $services_json;
+       if (!isset($services_json)) {
+               $services_json = new Services_JSON();
+       }
+       return $services_json->decode($arg);
+}
+
+?>