I have a lua table such as:
local _table = {}
_table["name"] = "some user name"
_table["phone"] = nil
ngx.say(cjson.encode(_table))
The ngx.say output as below:
{"name":"some user name"}
As you can see the phone field in _table has been ignored! How to set encoding-options to include any nil field during cjson encode processing. Such as:
{"name":"some user name", "phone": null}