Skip to content

Can jr ignore some property name where building JSON string ? #14

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

Closed
shawnye opened this issue Jul 17, 2014 · 2 comments
Closed

Can jr ignore some property name where building JSON string ? #14

shawnye opened this issue Jul 17, 2014 · 2 comments

Comments

@shawnye
Copy link

shawnye commented Jul 17, 2014

I think It is better if there is method like 'excludeProperties()' or 'ignoreProperties()' in com.fasterxml.jackson.jr.ob.JSON.

The method mentioned above can simplify jackson databind counterpart :

objectMapper.setPropertyNamingStrategy(new PropertyNamingStrategy() {
});

That is also jr's philosophy,isn't it :)
Thank you

@cowtowncoder
Copy link
Member

There is no way to do that currently, but I take this as an improvement idea, and see how easy it'd be to do.

This would be easy-ish for root object (with "exclude()" or such), but less so for dependant types (child objects).

@cowtowncoder
Copy link
Member

I think #32 can cover this, adding building blocks to achieve this.

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

2 participants