Skip to content

Commit

Permalink
RDK-32357 : Changed result of getAvailableReportProfiles to be array …
Browse files Browse the repository at this point in the history
…of objects.
  • Loading branch information
sborushevsky committed Jul 28, 2021
1 parent 40d9f7d commit 0d6782e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Telemetry/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,17 @@ namespace WPEFramework

JsonArray profiles;
getProfiles(profiles);
response["reportProfiles"] = profiles;

JsonArray profilesRes;
JsonArray::Iterator it = profiles.Elements();
while(it.Next())
{
JsonObject o;
o["name"] = it.Current().String();
profilesRes.Add(o);
}

response["reportProfiles"] = profilesRes;

returnResponse(true);
}
Expand Down

0 comments on commit 0d6782e

Please sign in to comment.