lua-cjson
lua-cjson copied to clipboard
Add decode option to ignore JSON null values
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.
I think it would make more sense to make the "null" value settable. That way it can also be replaced by other values.