1
0
Fork 0
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:
Sean Leary 2016-10-08 10:07:31 -05:00 committed by GitHub
commit 237376eca6

View file

@ -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;
} }