Skip to content
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

Fix example JSON parser null issue #91

Closed
wants to merge 1 commit into from
Closed

Conversation

yocontra
Copy link

Just implemented your advice from #17

Only tested in the online version, everything appears to be working.

@dmajda
Copy link
Contributor

dmajda commented Aug 14, 2013

Thanks for the patch, but I'd like to resolve this properly in 0.8.0 by redesigning the error reporting system to allow null as a regular action result (see #198). Closing.

@dmajda dmajda closed this Aug 14, 2013
dmajda added a commit that referenced this pull request Aug 20, 2013
We couldn't return |null| in the |value| rule of the JSON example
parser because that would mean parse failure. So until now, we just
returned |"null"| (a string).

This was obviously stupid, so this commit changes the |value| rule to
return a special object instead that is converted to |null| later.

Based on patches by Patrick Logan (GH-91) and Jakub Vrána (GH-191).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants