Dump data from a Redis server to a JSON file.