Skip to content

Commit

Permalink
📚 docs: update README.md #4
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Jan 11, 2025
1 parent f45a4f6 commit 7afc7e5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ A `fj` path is designed to be represented as a sequence of elements divided by a

In addition to the `.` symbol, several other characters hold special significance, such as `|`, `#`, `@`, `\`, `*`, `!`, and `?`.

## Access values
## Access Values - Object

- **Basic**: in most situations, you'll simply need to access values using the object name or array index.

Expand All @@ -153,3 +153,12 @@ In addition to the `.` symbol, several other characters hold special significanc
```shell
> properties.alias\.description # "An unique identifier in a submission."
```

## Access Values - Arrays

The `#` symbol enables navigation within JSON arrays. To retrieve the length of an array, simply use the `#` on its own.

```shell
> animals.# # 3 (length of an array)
> animals.#.name # ["Meowsy","Barky","Purrpaws"]
```

0 comments on commit 7afc7e5

Please sign in to comment.