Closed Alex009 closed 1 month ago
for example i have response:
{ "id": "123", "field": "dsdsd" }
and i want to set null for field in some cases. When i try do it:
field
item:set("field", nil)
i not have errors, but also result not changed - i still got dsdsd
dsdsd
you should use the nil helper https://github.com/krakend/krakend-lua/blob/master/types.go#L7-L13
item:set("field", luaNil.new())
for example i have response:
and i want to set null for
field
in some cases. When i try do it:i not have errors, but also result not changed - i still got
dsdsd