-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Nullness" of a JSON null is lost while iterating using formap #781
Comments
Looks like you've uncovered not one, but two bugs in the parser.
|
@tiymat pushed a fix to |
In testing the In JSON objects constructed with
Edit: I guess the issue isn't with
|
Good spot. The parser for object creator was a little slapdash. I'm pretty sure I wrote that code wrapped under a blanket while fighting off covid. Which also explains why the tests aren't thorough enough. I'm going to merge the changes I have currently and will rewrite the object creator parser for a new release. |
#781 two parser bugs affecting `is-null`
Describe the bug:
When iterating over a JSON object using
formap
,is-null
will always report the value as being non-null.Expected behaviour:
is-null
should behave the same whether or not it's invoked on the value of an object in aformap
loop.Screenshots:
Platform (please complete the following information):
uname -a
if supported: Ubuntu 23.04version --no-app-name
: 5.3.6000Additional context:
Can be worked around by disregarding the variable
formap
uses for the value like sobut I'm not sure if it's safe to access the value in this way while iterating over the object?
The text was updated successfully, but these errors were encountered: