It would be nice to have a helper method is_numberic() similar to the php one.
It would be a virtual function in TJValue and all the TJComment/TJObject/TJArray/TJNull would return false, TJValueNumber would return true
For TJString we would have to check if it evaluates to a number ... if it could be a number
Not sure what we would do about TJBoolean
Maybe we should have a 'strict' flag, so that TJBoolean and TJString return false if strict?
It would be nice to have a helper method is_numberic() similar to the php one.
It would be a virtual function in
TJValueand all theTJComment/TJObject/TJArray/TJNullwould return false, TJValueNumber would return trueFor
TJStringwe would have to check if it evaluates to a number ... if it could be a numberNot sure what we would do about
TJBooleanMaybe we should have a 'strict' flag, so that
TJBooleanandTJStringreturn false if strict?