Skip to content

Add decode option to ignore JSON null values#51

Open
exjesper wants to merge 2 commits into
openresty:masterfrom
exjesper:optional-json-null
Open

Add decode option to ignore JSON null values#51
exjesper wants to merge 2 commits into
openresty:masterfrom
exjesper:optional-json-null

Conversation

@exjesper

Copy link
Copy Markdown

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

Tieske commented Sep 26, 2024

Copy link
Copy Markdown

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