Avoid decoding JSON Pointer tokens twice

This commit is contained in:
Jake Wang
2026-09-18 20:10:16 -04:00
parent 8746735758
commit 775c98ea41
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 {