Skip to content

Commit a7d5bc7

Browse files
authored
fix #2526 - fix json README links (#2527)
1 parent 79b0df8 commit a7d5bc7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/json/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @redis/json
22

3-
This package provides support for the [RedisJSON](https://redisjson.io) module, which adds JSON as a native data type to Redis. It extends the [Node Redis client](https://github.com/redis/node-redis) to include functions for each of the RedisJSON commands.
3+
This package provides support for the [RedisJSON](https://redis.io/docs/stack/json/) module, which adds JSON as a native data type to Redis. It extends the [Node Redis client](https://github.com/redis/node-redis) to include functions for each of the RedisJSON commands.
44

55
To use these extra commands, your Redis server must have the RedisJSON module installed.
66

@@ -10,7 +10,7 @@ For a complete example, see [`managing-json.js`](https://github.com/redis/node-r
1010

1111
### Storing JSON Documents in Redis
1212

13-
The [`JSON.SET`](https://oss.redis.com/redisjson/commands/#jsonset) command stores a JSON value at a given JSON Path in a Redis key.
13+
The [`JSON.SET`](https://redis.io/commands/json.set/) command stores a JSON value at a given JSON Path in a Redis key.
1414

1515
Here, we'll store a JSON document in the root of the Redis key "`mydoc`":
1616

@@ -37,11 +37,11 @@ await client.json.set('noderedis:jsondata', '$', {
3737
});
3838
```
3939

40-
For more information about RedisJSON's path syntax, [check out the documentation](https://oss.redis.com/redisjson/path/).
40+
For more information about RedisJSON's path syntax, [check out the documentation](https://redis.io/docs/stack/json/path/).
4141

4242
### Retrieving JSON Documents from Redis
4343

44-
With RedisJSON, we can retrieve all or part(s) of a JSON document using the [`JSON.GET`]() command and one or more JSON Paths. Let's get the name and age of one of the pets:
44+
With RedisJSON, we can retrieve all or part(s) of a JSON document using the [`JSON.GET`](https://redis.io/commands/json.get/) command and one or more JSON Paths. Let's get the name and age of one of the pets:
4545

4646
```javascript
4747
const results = await client.json.get('noderedis:jsondata', {
@@ -62,19 +62,19 @@ const results = await client.json.get('noderedis:jsondata', {
6262

6363
RedisJSON includes commands that can atomically update values in a JSON document, in place in Redis without having to first retrieve the entire document.
6464

65-
Using the [`JSON.NUMINCRBY`](https://oss.redis.com/redisjson/commands/#jsonnumincrby) command, we can update the age of one of the pets like this:
65+
Using the [`JSON.NUMINCRBY`](https://redis.io/commands/json.numincrby/) command, we can update the age of one of the pets like this:
6666

6767
```javascript
6868
await client.json.numIncrBy('noderedis:jsondata', '.pets[1].age', 1);
6969
```
7070

71-
And we can add a new object to the pets array with the [`JSON.ARRAPPEND`](https://oss.redis.com/redisjson/commands/#jsonarrappend) command:
71+
And we can add a new object to the pets array with the [`JSON.ARRAPPEND`](https://redis.io/commands/json.arrappend/) command:
7272

7373
```javascript
74-
await client.json.arrAppend('noderedis:jsondata', '.pets', {
75-
name: 'Robin',
76-
species: 'bird',
77-
age: 1,
78-
isMammal: false
79-
});
74+
await client.json.arrAppend('noderedis:jsondata', '.pets', {
75+
name: 'Robin',
76+
species: 'bird',
77+
age: 1,
78+
isMammal: false
79+
});
8080
```

0 commit comments

Comments
 (0)