In production redis, it looks like cjson.decode("null") returns cjson.null whereas the lua cjson in miniredis returns nil.
Maybe gopher-lua should be updated to match redis? The change involved seems a bit deep though (requires changing gopher-lua to return a special sentinel value and making cjson.null also return that sentinel value).
In production redis, it looks like
cjson.decode("null")
returnscjson.null
whereas the lua cjson in miniredis returnsnil
.Maybe gopher-lua should be updated to match redis? The change involved seems a bit deep though (requires changing gopher-lua to return a special sentinel value and making cjson.null also return that sentinel value).