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 JsonGenerator.writeStartObject(Object, int) (needed by CBOR, maybe Avro) #517

Closed
cowtowncoder opened this issue Feb 14, 2019 · 1 comment

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented Feb 14, 2019

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

cowtowncoder added a commit that referenced this issue Aug 14, 2019
@cowtowncoder
Copy link
Member Author

Both were added, but as per notes, should try to avoid use until 2.11 / 3.0

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