mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-02 03:27:51 +00:00
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
@@ -131,8 +131,10 @@ namespace OpenWifi {
|
|||||||
} else if (Original.isArray(i)) {
|
} else if (Original.isArray(i)) {
|
||||||
Poco::JSON::Array Arr;
|
Poco::JSON::Array Arr;
|
||||||
auto Obj = Original.getArray(i);
|
auto Obj = Original.getArray(i);
|
||||||
|
if(Obj->size()>0) {
|
||||||
ReplaceVariablesInArray(*Obj, Arr);
|
ReplaceVariablesInArray(*Obj, Arr);
|
||||||
Result.set(i, Arr);
|
Result.set(i, Arr);
|
||||||
|
}
|
||||||
} else if (Original.isObject(i)) {
|
} else if (Original.isObject(i)) {
|
||||||
Poco::JSON::Object Expanded;
|
Poco::JSON::Object Expanded;
|
||||||
auto Obj = Original.getObject(i);
|
auto Obj = Original.getObject(i);
|
||||||
@@ -153,8 +155,10 @@ namespace OpenWifi {
|
|||||||
if (element.isArray()) {
|
if (element.isArray()) {
|
||||||
Poco::JSON::Array Expanded;
|
Poco::JSON::Array Expanded;
|
||||||
const auto Object = element.extract<Poco::JSON::Array::Ptr>();
|
const auto Object = element.extract<Poco::JSON::Array::Ptr>();
|
||||||
|
if(Object->size()>0) {
|
||||||
ReplaceVariablesInArray(*Object, Expanded);
|
ReplaceVariablesInArray(*Object, Expanded);
|
||||||
ResultArray.add(Expanded);
|
ResultArray.add(Expanded);
|
||||||
|
}
|
||||||
} else if (element.isStruct()) {
|
} else if (element.isStruct()) {
|
||||||
Poco::JSON::Object Expanded;
|
Poco::JSON::Object Expanded;
|
||||||
const auto &Object = element.extract<Poco::JSON::Object::Ptr>();
|
const auto &Object = element.extract<Poco::JSON::Object::Ptr>();
|
||||||
|
|||||||
Reference in New Issue
Block a user