Skip to content

Add JsonGenerator.writeStartObject(Object, int) (needed by CBOR, maybe Avro)Β #517

@cowtowncoder

Description

@cowtowncoder

(for background, see: FasterXML/jackson-dataformats-binary#3)

Some binary data formats have optimized versions of element-prefixed Objects and/or Arrays.
For Arrays we already have writeStartArray(int), but for Objects there is no equivalent.

But instead of adding writeStartElement(int), I think we should add:

  • writeStartObject(Object, int)

to pass databinding level value for which entries are written, possibly used by streaming generator.
And while doing that, also add:

  • writeStartArray(Object, int)

for sake of completeness.

These can be added in 2.10, but probably not made use of until a later point (3.0, likely).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions