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

Add decode option to ignore JSON null values #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

exjesper
Copy link

By default JSON null values are encoded cjson.null lightuserdata. cjson.decode_json_null(false) allows disabling this behavior and instead convert JSON null to Lua nil values.

@Tieske
Copy link

Tieske commented Sep 26, 2024

I think it would make more sense to make the "null" value settable. That way it can also be replaced by other values.

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.

2 participants