Skip to content

Commit 8e4c42c

Browse files
authored
Update README.md (#6)
1 parent 16e2211 commit 8e4c42c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ There's an overload of `parser.feed()` that takes a ByteBuffer.
9494
### Selecting array elements
9595

9696
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.
9898

9999
In the previous example we used `/friends/-` to select every element of the `friends` array.
100100

@@ -121,12 +121,12 @@ A callback for `/widgets/-/serialNumber` is invoked once for `"123"` and once fo
121121

122122
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.
123123

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.
125125

126126

127127
### Nullable values
128128

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`.
130130

131131

132132
## FAQ

0 commit comments

Comments
 (0)