Commit a5d8fcac authored by Fang-WANG's avatar Fang-WANG

send json array to web

parent 6f4baad5
......@@ -1311,10 +1311,13 @@ bool smf_app::handle_nf_status_notification(
for (auto address : nfIpv4Addresses) {
json_data["ipv4Addresses"].push_back(inet_ntoa(address));
}
my_json json_data_arr = nlohmann::json::array();
json_data_arr.push_back(json_data);
Logger::smf_app().error(
"json_data %s \n",json_data.dump().c_str());
"json_data %s \n",json_data_arr.dump().c_str());
update_client(json_data.dump().length(),json_data.dump().c_str());
update_client(json_data_arr.dump().length(),json_data_arr.dump().c_str());
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment