Skip to content

JsonbSerializer's javadoc example is most likely misguided #178

Open
@brunoabdon

Description

@brunoabdon

This line of JsonbSerializer's javadoc's exemplifies its use by calling the method SerializationContext.serialize(T object, JsonGenerator generator) , that is "intended to serialize inside JSON_ARRAYs"1, which is not the case.

The intended example is more likely

ctx.serialize("boxInnerObject",boxInnerObject,generator);

which uses the serialize version with a key parameter.

1 - https://javaee.github.io/javaee-spec/javadocs/javax/json/bind/serializer/SerializationContext.html#serialize-T-javax.json.stream.JsonGenerator-

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationInvolves the spec or javadocs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions