We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue copied from: java-json-tools#80
When I find the difference between two JsonNodes, I shall be able to ignore specific fields.
Example:
Foo.java has id and name fields and I have two different objects of this class say foo1 and foo2.
When I compare the diff using JsonDiff class, I shall be able to ignore id comparison and be able to find diff for name field only.
JsonNode oldJsonNode = objectMapper.readTree(objectMapper.writeValueAsString(foo1)); JsonNode newJsonNode = objectMapper.readTree(objectMapper.writeValueAsString(foo2)); JsonNode jsonDiff = JsonDiff.asJson(oldJsonNode, newJsonNode);
I want to exclude id field in jsonDiff object.
The text was updated successfully, but these errors were encountered:
#30 Ignore fields in JsonDiff
4a99cbf
#30 Ignore PathNotFoundException when removing fields which should be…
9f0585f
… ignored, but they don't exist. Breaking diff process, when ignored fields contains invalid JsonPath or JsonPointer expression
Merge pull request #31 from gravity9-tech/feature/30_json_diff_ignore…
fabe6c2
…_fields #30 Ignore fields in JsonDiff
done
Sorry, something went wrong.
piotr-bugara-gravity9
No branches or pull requests
Issue copied from: java-json-tools#80
When I find the difference between two JsonNodes, I shall be able to ignore specific fields.
Example:
Foo.java has id and name fields and I have two different objects of this class say foo1 and foo2.
When I compare the diff using JsonDiff class, I shall be able to ignore id comparison and be able to find diff for name field only.
I want to exclude id field in jsonDiff object.
The text was updated successfully, but these errors were encountered: