Skip to content
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

Ensure new fields in json message does not cause serialization problem #5

Closed
sherriff opened this issue May 11, 2017 · 0 comments
Closed

Comments

@sherriff
Copy link
Contributor

Jackson defaults to fail on unknown properties. This is not the preferred behavior.

The task is to ensure that it is possible to add new properties without causing trouble for older clients which do not support the need fields.

Two alternative implementations:

  1. Configure jackson
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

  2. Replace jackson with JsonPath.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant