miniredis
miniredis copied to clipboard
lua cjson.decode("null") returns nil instead of cjson.null
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).
Thanks,
miniredis already uses a fork, maybe you can have a look? https://github.com/alicebob/gopher-json
(I don't remember the reason we needed the fork, will have to look that up another day)