diff --git a/README.md b/README.md index 5ead4ea..eab3fbe 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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"] +```