aboutsummaryrefslogtreecommitdiff
path: root/views/json/api
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 11:40:46 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-25 11:40:46 +0000
commit347b09527e5d812cd1ed67d6faa4ce0cba259b09 (patch)
tree32b636ea8502bcf4a5abbbbb7f3e819084a63131 /views/json/api
parent0c1b67ac3cf61daac65c15f43306ecc4d027fbdd (diff)
downloadelgg-347b09527e5d812cd1ed67d6faa4ce0cba259b09.tar.gz
elgg-347b09527e5d812cd1ed67d6faa4ce0cba259b09.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* git-svn-id: https://code.elgg.org/elgg/trunk@526 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/json/api')
-rw-r--r--views/json/api/output.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/views/json/api/output.php b/views/json/api/output.php
new file mode 100644
index 000000000..84e0d1ec3
--- /dev/null
+++ b/views/json/api/output.php
@@ -0,0 +1,19 @@
+<?php
+ /**
+ * Elgg JSON output
+ * This outputs the api as JSON
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ */
+
+ $result = $vars['result'];
+ $export = $result->export();
+
+ echo json_encode($export);
+?> \ No newline at end of file