This repository was archived by the owner on Oct 18, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ If JSONPath `p` is selector `s` followed by JSONPath `t`, then for all JSON valu
42
42
```
43
43
Question: do we need to use something like quasi quotes to clarify the above?
44
44
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
46
49
If ` o ` is a JSON object which does not have key ` k ` , then:
47
50
```
48
51
<o>.k = <>
52
55
<o ∪ {k:v}>.k = <v>
53
56
```
54
57
55
- ## union
58
+ ### union
56
59
```
57
60
<a>[u, v] = (<a>[u]) ^ (<a>[v])
58
61
```
59
62
60
- ## bracket child
63
+ ### bracket child
61
64
If ` o ` is a JSON object which does not have key ` k ` (for certain forms of k...), then:
62
65
```
63
66
<o>[k] = <>
67
70
<o ∪ {k:v}>[k] = <v>
68
71
```
69
72
70
- ## array slice
73
+ ### array slice
71
74
If ` a ` is an array, then:
72
75
```
73
76
... details! ...
@@ -78,7 +81,7 @@ If `a` is not an array and `sl` is a slice expression, then:
78
81
<a>[sl] = <>
79
82
```
80
83
81
- ## recursive descent
84
+ ### recursive descent
82
85
If ` z ` is a scalar:
83
86
```
84
87
<z>.. = <z>
You can’t perform that action at this time.
0 commit comments