private JsonGenerator writeName(String name) { writeComma(); writeEscapedString(name); writeColon(); return this; }
@Override public JsonGenerator write(String value) { checkContextForValue(); writeComma(); writeEscapedString(value); popFieldContext(); return this; }
@Override public JsonGenerator write(String name, String fieldValue) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeEscapedString(fieldValue); return this; }
private void writeValue(String name, String value) { writeComma(); writeEscapedString(name); writeColon(); writeString(value); }
private JsonGenerator writeName(String name) { writeComma(); writeEscapedString(name); writeColon(); return this; }
@Override public JsonGenerator write(String value) { checkContextForValue(); writeComma(); writeEscapedString(value); popFieldContext(); return this; }
@Override public JsonGenerator write(String name, String fieldValue) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeEscapedString(fieldValue); return this; }
private void writeValue(String name, String value) { writeComma(); writeEscapedString(name); writeColon(); writeString(value); }
private JsonGenerator writeName(String name) { writeComma(); writeEscapedString(name); writeColon(); return this; }
private JsonGenerator writeName(String name) { writeComma(); writeEscapedString(name); writeChar(':'); return this; }
private JsonGenerator writeName(String name) { writeComma(); writeEscapedString(name); writeColon(); return this; }
@Override public JsonGenerator write(String value) { checkContextForValue(); writeComma(); writeEscapedString(value); popFieldContext(); return this; }
@Override public JsonGenerator write(String name, String fieldValue) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeEscapedString(fieldValue); return this; }
@Override public JsonGenerator write(String name, String fieldValue) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeEscapedString(fieldValue); return this; }
@Override public JsonGenerator write(String name, String fieldValue) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeEscapedString(fieldValue); return this; }
@Override public JsonGenerator write(String name, String fieldValue) { if (currentContext.scope != Scope.IN_OBJECT) { throw new JsonGenerationException( JsonMessages.GENERATOR_ILLEGAL_METHOD(currentContext.scope)); } writeName(name); writeEscapedString(fieldValue); return this; }
private void writeValue(String name, String value) { writeComma(); writeEscapedString(name); writeColon(); writeString(value); }
private void writeValue(String name, String value) { writeComma(); writeEscapedString(name); writeColon(); writeString(value); }
@Override public JsonGenerator write(String value) { checkContextForValue(); writeComma(); writeEscapedString(value); popFieldContext(); return this; }
private void writeValue(String name, String value) { writeComma(); writeEscapedString(name); writeChar(':'); writeString(value); }