From: cash Date: Tue, 10 Nov 2009 00:02:39 +0000 (+0000) Subject: leaner json objects for web services api calls X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cb54b56f74048071bc07cc68d5d484b7e4111980;p=lorea%2Felgg.git leaner json objects for web services api calls git-svn-id: http://code.elgg.org/elgg/trunk@3649 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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