aboutsummaryrefslogtreecommitdiff
path: root/views/json
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-10 00:02:39 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-10 00:02:39 +0000
commitcb54b56f74048071bc07cc68d5d484b7e4111980 (patch)
treeedd9f9ef9ad97310baa309286004f7766988b1a4 /views/json
parent3aaf48831a092f76a884629386cfe3f8a9004098 (diff)
downloadelgg-cb54b56f74048071bc07cc68d5d484b7e4111980.tar.gz
elgg-cb54b56f74048071bc07cc68d5d484b7e4111980.tar.bz2
leaner json objects for web services api calls
git-svn-id: http://code.elgg.org/elgg/trunk@3649 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/json')
-rw-r--r--views/json/api/output.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/json/api/output.php b/views/json/api/output.php
index 49aeb8438..c593dada2 100644
--- a/views/json/api/output.php
+++ b/views/json/api/output.php
@@ -13,6 +13,8 @@
$result = $vars['result'];
$export = $result->export();
-// echo json_encode($export);
global $jsonexport;
-$jsonexport['api'][] = $export; \ No newline at end of file
+
+// with api calls, we don't want extra baggage found in other json views
+// so we skip the associative array
+$jsonexport = $export; \ No newline at end of file