Example #1
0
 public final void writeEndArray() throws IOException, JsonGenerationException {
   if (!_writeContext.inArray()) {
     _reportError("Current context not an ARRAY but " + _writeContext.getTypeDesc());
   }
   if (_cfgPrettyPrinter != null) {
     _cfgPrettyPrinter.writeEndArray(this, _writeContext.getEntryCount());
   } else {
     _writeEndArray();
   }
   _writeContext = _writeContext.getParent();
 }