diff options
Diffstat (limited to 'views/json/api/output.php')
| -rw-r--r-- | views/json/api/output.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/views/json/api/output.php b/views/json/api/output.php index 49aeb8438..adeb7cc75 100644 --- a/views/json/api/output.php +++ b/views/json/api/output.php @@ -1,18 +1,17 @@ <?php /** * Elgg JSON output - * This outputs the api as JSON + * This outputs the api results as JSON * * @package Elgg * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - * */ $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 |
