-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Poco::JSON::Array is no array for Poco::Dynamic::Var #1860
Copy link
Copy link
Closed
Description
I parsed JSON and realized that Poco::Dynamic::Var<Poco::JSON::Array>::isArray evaluates to false. I expected it to return true.
Implementation that results to the unexpected behaviour.
poco/JSON/include/Poco/JSON/Array.h
Line 500 in 8392544
| return false; |
Sample code to reproduce:
Poco::JSON::Array arr;
arr.add(1); // make it non empty
Poco::Dynamic::Var(arr).isArray();or with the parser:
Poco::JSON::Parser().parse("[1]").isArray()If this is expected behaviour can I get an explanation why Poco::JSON::Array is interpreted as no array?
Reactions are currently unavailable