Closed
Description
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, but old:2
will not
Metadata
Metadata
Assignees
Labels
No labels