changeset 177:1990dd9570d8

Fix populating ListResponse from JSON response, incorrect indexing.
author Lucas Thompson <dev@lucas.im>
date Tue, 31 Jan 2017 22:58:38 +0000
parents 60dc013bd69c
children 353f842ed73f
files vamp-json/VampJson.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vamp-json/VampJson.h	Tue Jan 31 22:56:52 2017 +0000
+++ b/vamp-json/VampJson.h	Tue Jan 31 22:58:38 2017 +0000
@@ -849,7 +849,7 @@
     toListResponse(json11::Json j, std::string &err) {
 
         ListResponse resp;
-        for (const auto &a: j["result"]["available"].array_items()) {
+        for (const auto &a: j["available"].array_items()) {
             resp.available.push_back(toPluginStaticData(a, err));
             if (failed(err)) return {};
         }