Skip to content

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

@cowtowncoder

Description

@cowtowncoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions