Hello,
The following rule { "==" : ["", 0] } evaluates to true as per http://jsonlogic.com/play.html but evaluates to false using the lib. (version 1.0.2).
To me, this comes from the method 'compareNumberToString" located in EqualityExpression class. It catches the exception while parsing the empty string to a double and so returns false instead of true in this specific scenario.
Could you please check this and indicates if you think there is a workaround ? Thanks a lot.
Hello, The following rule { "==" : ["", 0] } evaluates to true as per http://jsonlogic.com/play.html but evaluates to false using the lib. (version 1.0.2). To me, this comes from the method 'compareNumberToString" located in EqualityExpression class. It catches the exception while parsing the empty string to a double and so returns false instead of true in this specific scenario. Could you please check this and indicates if you think there is a workaround ? Thanks a lot.