Working with JSON
The JSON format does not need too much of an introduction. As a JavaScript native object, born for lightweight communication between web clients and servers, and adopted in general for electronic communications, it is supported by most client libraries and databases. Redis Stack does not make exceptions and extends the data modeling capabilities to JSON objects, together with the indexing features we’ve learned so far. Using the JSON data structure in Redis Stack, you can store, retrieve, and update JSON documents efficiently using the popular JSONPath syntax. The many commands to manipulate strings, counters, arrays, and object literals, and all the data stored in a JSON document, help address the requirements of several data modeling problems.
The JSONPath syntax
The JSONPath syntax helps with accessing a single element or multiple elements within a JSON document.
Using the JSON.* suite of commands together with JSONPath, you can work with the JSON...