Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 92e9a9b

Browse files
committed
Address review comments
1 parent 8c2f61e commit 92e9a9b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ If JSONPath `p` is selector `s` followed by JSONPath `t`, then for all JSON valu
4242
```
4343
Question: do we need to use something like quasi quotes to clarify the above?
4444

45-
## dot child
45+
## selectors
46+
47+
The following sections describe primitive selectors which can be strung together to form a JSONPath.
48+
### dot child
4649
If `o` is a JSON object which does not have key `k`, then:
4750
```
4851
<o>.k = <>
@@ -52,12 +55,12 @@ and:
5255
<o ∪ {k:v}>.k = <v>
5356
```
5457

55-
## union
58+
### union
5659
```
5760
<a>[u, v] = (<a>[u]) ^ (<a>[v])
5861
```
5962

60-
## bracket child
63+
### bracket child
6164
If `o` is a JSON object which does not have key `k` (for certain forms of k...), then:
6265
```
6366
<o>[k] = <>
@@ -67,7 +70,7 @@ and:
6770
<o ∪ {k:v}>[k] = <v>
6871
```
6972

70-
## array slice
73+
### array slice
7174
If `a` is an array, then:
7275
```
7376
... details! ...
@@ -78,7 +81,7 @@ If `a` is not an array and `sl` is a slice expression, then:
7881
<a>[sl] = <>
7982
```
8083

81-
## recursive descent
84+
### recursive descent
8285
If `z` is a scalar:
8386
```
8487
<z>.. = <z>

0 commit comments

Comments
 (0)