Merge pull request #1078 from jakezwang/fix/json-pointer-double-unescape

Decode JSONPointer tokens once only
This commit is contained in:
Sean Leary
2026-09-23 12:09:16 -05:00
committed by GitHub
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -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 {