Closed zongyanke closed 1 year ago
Describe the bug string jsonStr = R"( { "comments": [] } )"; json data = json::parse(jsonStr.c_str()); json result = jsonpath::json_query(data, "$.comments.length");
result == [0]
result == []
You're right, should be fixed on master, thanks for reporting this.
Fix is in 0.170.0
Describe the bug string jsonStr = R"( { "comments": [] } )"; json data = json::parse(jsonStr.c_str()); json result = jsonpath::json_query(data, "$.comments.length");
result == [0]
result == []