Skip to content

Commit a5ea86f

Browse files
committed
https://telecominfraproject.atlassian.net/browse/WIFI-12868
Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
1 parent b3bca30 commit a5ea86f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/framework/RESTAPI_Handler.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,16 @@ namespace OpenWifi {
574574
Poco::JSON::Stringifier::stringify(Object, Answer);
575575
}
576576

577+
inline void ReturnObject(const std::vector<std::string> &Strings) {
578+
Poco::JSON::Array Arr;
579+
for(const auto &String:Strings) {
580+
Arr.add(String);
581+
}
582+
std::ostringstream os;
583+
Arr.stringify(os);
584+
return ReturnRawJSON(os.str());
585+
}
586+
577587
inline void ReturnRawJSON(const std::string &json_doc) {
578588
PrepareResponse();
579589
if (Request != nullptr) {

0 commit comments

Comments
 (0)