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

@JsonIgnore or @JsonPropertyIgnore are ignored #689

Open
PROteinBY opened this issue Jul 20, 2017 · 1 comment
Open

@JsonIgnore or @JsonPropertyIgnore are ignored #689

PROteinBY opened this issue Jul 20, 2017 · 1 comment
Labels

Comments

@PROteinBY
Copy link

I make this one:

protected implicit lazy val jsonFormats: Formats = DefaultFormats.preservingEmptyValues
mapper.enable(SerializationFeature.INDENT_OUTPUT)

And i have case class, where i put @JsonIgnore and @JsonPropertyIgnore annotations (i try to combain them and use only one....). But in all cases of use they are ignored (jgnor field renders in result)... Why? When i use just jackson without any helpers, it's work (with @JsonPropertyIgnore(Array(...)))

@takezoe
Copy link
Member

takezoe commented Jul 21, 2017

@PROteinBY Could you show the source code of your annotated case class?

@takezoe takezoe added the json label Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants