From cb54b56f74048071bc07cc68d5d484b7e4111980 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 10 Nov 2009 00:02:39 +0000 Subject: leaner json objects for web services api calls git-svn-id: http://code.elgg.org/elgg/trunk@3649 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/json/api/output.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'views/json/api/output.php') 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 -- cgit v1.2.3