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:
Aleksandar Fabijanic
2013-06-07 23:37:02 -05:00
parent 5e6ef1c14d
commit b61b5ae53d
4 changed files with 19 additions and 2 deletions

View File

@@ -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.