How to visualize JSON data using RedisInsight

RedisInsight provides built-in support for the RedisJSON, RediSearch, RedisGraph, Redis Streams, and RedisTimeSeries modules to make it even easier to query, visualize, and interactively manipulate search indexes, graphs, streams, and time-series data. Support for RedisJSON on Redis Cluster was introduced for the first time in RedisInsight v1.8.0. With RedisInsight, you can visualize and edit your JSON data flawlessly.

Below steps shows how to get started with RedisJSON using RedisInsight:

Step 1. Register and subscribe#

Follow this link to register and subscribe to Redis Enterprise Cloud

RedisJSON

Step 2. Create a database with RedisJSON Module#

RedisJSON

Step 3. Download RedisInsight#

To use RedisInsight on a local Mac, you can download from the RedisInsight page on the RedisLabs website:

Click this link to access a form that allows you to select the operating system of your choice.

My Image

Fill out the rest of the form and click “Download.” Please note that the package name is the combination of the platform and version as shown here:

redisinsight-platform-version

Step 4. Install RedisInsight#

Click on the RedisInsight executable and install it in your system.

My Image

Head over to your web browser and go to http://localhost:8001

Congratulations! You have successfully installed RedisInsight and are now ready to inspect your Redis data, monitor database health, and perform runtime server configuration with this browser-based management interface for your Redis deployment.

Step 5. Connect to Redis database#

My Image

Assuming that you already have Redis database up and running, select "Connect to a Redis database" My Image

Step 6. Add Redis Database#

Enter the requested details, including Name, Host (endpoint), Port, and Password in the form, as shown below. You can skip username for now. Then click “ADD REDIS DATABASE”:

Step 7. Execute JSON queries#

JSON.SET employee_profile . '{ "employee": " { "name": "carol", "age": 40, "married": true } }'

My Image

Step 8. Accessing RedisInsight Browser Tool#

Select "employee_profile" to display the JSON data

My Image

Step 9. Add a new key#

My Image

Step 10. Expand the JSON field#

My Image

Step 11. Using RedisInsight Browser CLI#

My Image

Step 12. Deleting the existing key#

My Image

References#