diff options
Diffstat (limited to 'web/lib/aurjson.class.php')
-rw-r--r-- | web/lib/aurjson.class.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index ab8ebbc1..2e5e06de 100644 --- a/web/lib/aurjson.class.php +++ b/web/lib/aurjson.class.php @@ -115,7 +115,12 @@ class AurJSON { * @return mixed A json formatted result response. **/ private function json_results($type, $count, $data) { - return json_encode( array('type' => $type, 'resultcount' => $count, 'results' => $data) ); + return json_encode(array( + 'version' => 2, + 'type' => $type, + 'resultcount' => $count, + 'results' => $data + )); } private function get_extended_fields($pkgid) { |