Skip to content

Commit 64177d8

Browse files
committed
optimize doc
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 06100e3 commit 64177d8

1 file changed

Lines changed: 6 additions & 26 deletions

File tree

docs/user/ppl/functions/json.rst

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,48 +10,28 @@ JSON Functions
1010

1111

1212

13-
JSON Path
14-
---------
15-
16-
Description
17-
>>>>>>>>>>>
18-
19-
All JSON paths used in JSON functions follow the format `<key1>{<index1>}.<key2>{<index2>}...`.
20-
21-
Each `<key>` represents a field name. The `{<index>}` part is optional and is only applicable when the corresponding key refers to an array.
22-
23-
For example::
24-
25-
a{2}.b{0}
26-
27-
This refers to the element at index 0 of the `b` array, which is nested inside the element at index 2 of the `a` array.
28-
29-
Notes:
30-
31-
- The `{<index>}` notation applies **only when** the associated key points to an array.
32-
- `{}` (without a specific index) is interpreted as a **wildcard**, equivalent to `{*}`, meaning "all elements" in the array at that level.
33-
3413

3514
JSON Path
3615
---------
3716

3817
Description
3918
>>>>>>>>>>>
4019

41-
All JSON paths used in JSON functions follow the format `<key1>{<index1>}.<key2>{<index2>}...`.
20+
All JSON paths used in JSON functions follow the format ``<key1>{<index1>}.<key2>{<index2>}...``.
4221

43-
Each `<key>` represents a field name. The `{<index>}` part is optional and is only applicable when the corresponding key refers to an array.
22+
Each ``<key>`` represents a field name. The ``{<index>}`` part is optional and is only applicable when the corresponding key refers to an array.
4423

4524
For example::
4625

4726
a{2}.b{0}
4827

49-
This refers to the element at index 0 of the `b` array, which is nested inside the element at index 2 of the `a` array.
28+
This refers to the element at index 0 of the ``b`` array, which is nested inside the element at index 2 of the ``a`` array.
5029

5130
Notes:
5231

53-
- The `{<index>}` notation applies **only when** the associated key points to an array.
54-
- `{}` (without a specific index) is interpreted as a **wildcard**, equivalent to `{*}`, meaning "all elements" in the array at that level.
32+
1. The ``{<index>}`` notation applies **only when** the associated key points to an array.
33+
34+
2. ``{}`` (without a specific index) is interpreted as a **wildcard**, equivalent to ``{*}``, meaning "all elements" in the array at that level.
5535

5636
JSON
5737
----------

0 commit comments

Comments
 (0)