We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
writeStartObject()
1 parent 5ef0368 commit 169d2fbCopy full SHA for 169d2fb
smile/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileGenerator.java
@@ -682,7 +682,15 @@ public final void writeStartObject(Object forValue) throws IOException
682
_streamWriteContext = ctxt;
683
_writeByte(TOKEN_LITERAL_START_OBJECT);
684
}
685
-
+
686
+ @Override // since 2.14
687
+ public void writeStartObject(Object forValue, int elementsToWrite) throws IOException {
688
+ _verifyValueWrite("start an object");
689
+ SmileWriteContext ctxt = _streamWriteContext.createChildObjectContext(forValue);
690
+ _streamWriteContext = ctxt;
691
+ _writeByte(TOKEN_LITERAL_START_OBJECT);
692
+ }
693
694
@Override
695
public final void writeEndObject() throws IOException
696
{
0 commit comments