mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Merge pull request #292 from erosb/master
Provides "#" string evaluation support for JSON Pointer
This commit is contained in:
commit
237376eca6
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ public class JSONPointer {
|
||||||
if (pointer == null) {
|
if (pointer == null) {
|
||||||
throw new NullPointerException("pointer cannot be null");
|
throw new NullPointerException("pointer cannot be null");
|
||||||
}
|
}
|
||||||
if (pointer.isEmpty()) {
|
if (pointer.isEmpty() || pointer.equals("#")) {
|
||||||
refTokens = Collections.emptyList();
|
refTokens = Collections.emptyList();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue