Converting Redis data to JSON.