mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-12-14 13:31:03 +08:00
Merge pull request #292 from erosb/master
Provides "#" string evaluation support for JSON Pointer
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user