limit allowed types for JSON Query

limited allowed types for JSON::Query to Object, Array, Object::Ptr,
Array::Ptr and empty