Exemplo n.º 1
0
 public final void writeFieldName(String name) throws IOException, JsonGenerationException {
   // Object is a value, need to verify it's allowed
   int status = _writeContext.writeFieldName(name);
   if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
     _reportError("Can not write a field name, expecting a value");
   }
   _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
 }