]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
leaner json objects for web services api calls
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 10 Nov 2009 00:02:39 +0000 (00:02 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 10 Nov 2009 00:02:39 +0000 (00:02 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3649 36083f99-b078-4883-b0ff-0f9b5a30f544

views/json/api/output.php

index 49aeb8438abaec5421c698f85d04d66bb230ddaf..c593dada292c924eab2f85b0c8642a425cfbc2bc 100644 (file)
@@ -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