Encodes {@code value}. @param value the literal string value, or null to encode a null literal. @return this writer.
(String value)
| 524 | * @return this writer. |
| 525 | */ |
| 526 | @CanIgnoreReturnValue |
| 527 | public JsonWriter value(String value) throws IOException { |
| 528 | if (value == null) { |
| 529 | return nullValue(); |
| 530 | } |
| 531 | writeDeferredName(); |
| 532 | beforeValue(); |
| 533 | string(value); |
| 534 | return this; |
| 535 | } |
| 536 | |
| 537 | /** |
| 538 | * Encodes {@code value}. |