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