@Override public SELF value(String key, String s) { if (s == null) return nul(key); preValue(key); emitStringValue(s); return castThis(); }
private void preValue(String key) { if (!inObject) throw new JsonWriterException("Invalid call to emit a key value while not writing an object"); pre(); emitStringValue(key); raw(':'); }
private void preValue(String key) { if (!inObject) throw new JsonWriterException("Invalid call to emit a key value while not writing an object"); pre(); emitStringValue(key); raw(':'); }
@Override public SELF value(String key, String s) { if (s == null) return nul(key); preValue(key); emitStringValue(s); return castThis(); }
@Override public SELF value(String s) { if (s == null) return nul(); preValue(); emitStringValue(s); return castThis(); }
@Override public SELF value(String key, String s) { if (s == null) return nul(key); preValue(key); emitStringValue(s); return castThis(); }
@Override public SELF value(String s) { if (s == null) return nul(); preValue(); emitStringValue(s); return castThis(); }
private void preValue(String key) { if (!inObject) throw new JsonWriterException("Invalid call to emit a key value while not writing an object"); pre(); emitStringValue(key); raw(':'); }
@Override public SELF value(String s) { if (s == null) return nul(); preValue(); emitStringValue(s); return castThis(); }