Skip to content

Commit 8dcb34c

Browse files
committed
Added some comments
1 parent e7fa615 commit 8dcb34c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main/WebServer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,8 @@ namespace http {
23362336
_log.Log(LOG_ERROR, "WebServer (applyJsonPath from LUA) : Invalid Json data received");
23372337
return 0;
23382338
}
2339+
2340+
// Grab optional arguments
23392341
Json::PathArgument arg1;
23402342
Json::PathArgument arg2;
23412343
Json::PathArgument arg3;
@@ -2402,9 +2404,11 @@ namespace http {
24022404
}
24032405
}
24042406

2405-
2407+
// Apply the JsonPath to the Json
24062408
Json::Path path(jsonpath, arg1, arg2, arg3, arg4, arg5);
24072409
Json::Value& node = path.make(root);
2410+
2411+
// Check if some data has been found
24082412
if (!node.isNull())
24092413
{
24102414
if (node.isDouble())

0 commit comments

Comments
 (0)