Encodes value. @param value the literal string value, or null to encode a null literal. @return this writer.
(String value)
| 321 | * @return this writer. |
| 322 | */ |
| 323 | public JsonWriter value(String value) throws IOException { |
| 324 | if (value == null) { |
| 325 | return nullValue(); |
| 326 | } |
| 327 | beforeValue(false); |
| 328 | string(value); |
| 329 | return this; |
| 330 | } |
| 331 | |
| 332 | /** |
| 333 | * Encodes {@code null}. |