mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
GH# 267: JSON 'find' not returning empty result if object is expected but another value is found
GH# 267: JSON 'find' not returning empty result if object is expected but another value is found
This commit is contained in:
@@ -162,6 +162,9 @@ Var Query::find(const std::string& path) const
|
||||
Object o = result.extract<Object>();
|
||||
result = o.get(name);
|
||||
}
|
||||
else
|
||||
result.empty();
|
||||
|
||||
}
|
||||
|
||||
if (!result.isEmpty() && !indexes.empty())
|
||||
|
||||
Reference in New Issue
Block a user