Open
Description
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.