Added partial changes for sending JSON to Redis.