Merge pull request #1078 from jakezwang/fix/json-pointer-double-unescape
Decode JSONPointer tokens once only
This commit is contained in:
@@ -203,7 +203,7 @@ public class JSONPointer {
|
||||
Object current = document;
|
||||
for (String token : this.refTokens) {
|
||||
if (current instanceof JSONObject) {
|
||||
current = ((JSONObject) current).opt(unescape(token));
|
||||
current = ((JSONObject) current).opt(token);
|
||||
} else if (current instanceof JSONArray) {
|
||||
current = readByIndexToken(current, token);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user