From c8dbc0a8b5ce369515c56b3864d2fae6bc0dd129 Mon Sep 17 00:00:00 2001 From: Gonzalo Zawadzki Date: Thu, 25 Feb 2016 14:48:44 +0000 Subject: [PATCH] [BUG] Fix Data API requestRecursive method array merge --- LearnositySDK/Request/DataApi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LearnositySDK/Request/DataApi.cs b/LearnositySDK/Request/DataApi.cs index a3a169c..9850b2a 100755 --- a/LearnositySDK/Request/DataApi.cs +++ b/LearnositySDK/Request/DataApi.cs @@ -112,7 +112,7 @@ public JsonObject requestRecursive(string url, JsonObject securityPacket, string /// Instance of the Remote class private JsonObject handleRequestRecursive(string url, JsonObject securityPacket, string secret, JsonObject requestPacket = null, string action = null, ProcessData callback = null) { - JsonObject response = new JsonObject(); + JsonObject response = new JsonObject(true); JsonObject data, meta; Remote request; int recursion = 0; @@ -139,7 +139,7 @@ private JsonObject handleRequestRecursive(string url, JsonObject securityPacket, } else { - response = Tools.array_merge(response, data); + response = Tools.array_merge(response, data.getJsonObject("data")); } } else {