mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04:00
Merge pull request #292 from erosb/master
Provides "#" string evaluation support for JSON Pointer
This commit is contained in:
commit
237376eca6
@ -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…
x
Reference in New Issue
Block a user