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

Add writeStartObject(Object pojo) to streamline assignment of current value #257

Closed
cowtowncoder opened this issue Mar 11, 2016 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

With addition of setCurrentValue() there's typically need to make 2 class; one to set current value, another to write START_OBJECT. Further there may be checks that some codecs (like, say, XML one) might want to make related to combination of underlying format element and Java Object it is to represent; these are much easier to make if there is just one call and not a sequence of two.

A related question is whether to do the same with writeStartArray(), perhaps related to handling of compact arrays of primitives (like for int[]).

@cowtowncoder cowtowncoder changed the title (2.8) Add writeStartObject(Object pojo) to streamline assignment of current value Add writeStartObject(Object pojo) to streamline assignment of current value Mar 22, 2016
@cowtowncoder cowtowncoder added this to the 2.8.0 milestone Mar 22, 2016
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