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 readValue()/readPropertyValue() methods in DeserializationContext #375

Closed
cowtowncoder opened this issue Dec 27, 2013 · 0 comments
Closed
Milestone

Comments

@cowtowncoder
Copy link
Member

In order to build a composite value deserializers, it would be nice to have convenience method for doing equivalent of:

JsonDeserializer<Object> deser = ctxt.findRootValueDeserializer(type); // or findContextualValueDeserializer() 
MyType value = (MyType) deser.deserialize(parser, ctxt);
// handle

and instead use

MyType value = (MyType) ctxt.readValue(parser, MyType.class);    

as a short-cut. This would also work for reading trees (type JsonNode.class).

cowtowncoder added a commit that referenced this issue Mar 17, 2014
@cowtowncoder cowtowncoder added this to the 2.4.0 milestone Mar 17, 2014
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