New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renameKey throws PathNotFoundException even if SUPPRESS_EXCEPTIONS is set #537
Comments
This also appears to be the case for
Error:
System info:
Relevant
|
Hello! I would try to help with this issue. |
This was referenced May 22, 2021
Since I cannot find a good way to fix the problem related to |
Fixed by #719 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
version 2.3.0
Configuration jsonConf = Configuration.defaultConfiguration().addOptions(Option.SUPPRESS_EXCEPTIONS);
JsonPath.using(jsonConf).parse("{}").read("missing");
JsonPath.using(jsonConf)
.parse("{"list":[{"data":{"old":1}},{"data":{}},{"data":{"old":2}}]}")
.renameKey("$..data", "old", "new");
read will not throw PathNotFoundException but renameKey will.
in this case,
old:1
will be renamed, butold:2
will notThe text was updated successfully, but these errors were encountered: