mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
limit allowed types for JSON Query
limited allowed types for JSON::Query to Object, Array, Object::Ptr, Array::Ptr and empty
This commit is contained in:
@@ -53,7 +53,9 @@ class JSON_API Query
|
||||
{
|
||||
public:
|
||||
Query(const Dynamic::Var& source);
|
||||
/// Constructor. Pass the start object/array or Ptr thereof.
|
||||
/// Creates the Query; source must be JSON Object, Array, Object::Ptr,
|
||||
/// Array::Ptr or empty Var. Any other type will trigger throwing of
|
||||
/// InvalidArgumentException.
|
||||
/// Creating Query holding Ptr will typically result in faster
|
||||
/// performance.
|
||||
|
||||
|
Reference in New Issue
Block a user