You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ There's an overload of `parser.feed()` that takes a ByteBuffer.
94
94
### Selecting array elements
95
95
96
96
Normally, a `-` in a JSON Pointer refers to the non-existent element past the end of an array.
97
-
`json-skiff` bends this rule, and interprets `-` as matching _every_ array element.
97
+
`json-skiff` bends this rule and interprets `-` as matching _every_ array element.
98
98
99
99
In the previous example we used `/friends/-` to select every element of the `friends` array.
100
100
@@ -121,12 +121,12 @@ A callback for `/widgets/-/serialNumber` is invoked once for `"123"` and once fo
121
121
122
122
If the target field value is a JSON Array or Object, use `MatchedValue.bytes()` to get the bytes of the Array / Object, and use your favorite JSON processing library to parse it.
123
123
124
-
This is also the recommended way to handle a value whose type is not known at runtime.
124
+
This is also the recommended way to handle a value whose type is not known ahead of time.
125
125
126
126
127
127
### Nullable values
128
128
129
-
If you expect a matched value might be null, check for null by calling `MatchedValue.isNull()` before calling any of the `read*` methods to avoid`NullPointerException`.
129
+
If you expect a matched value might be null, check for null by calling `MatchedValue.isNull()` before calling any of the `read*` methods, otherwise you'll get a`NullPointerException`.
0 commit comments