Skip to content

Add readValue()/readPropertyValue() methods in DeserializationContext #375

@cowtowncoder

Description

@cowtowncoder

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions