Encodes value. @param value the literal string value, or null to encode a null literal. @return this writer.
(String value)
| 297 | * @return this writer. |
| 298 | */ |
| 299 | public JsonWriter value(String value) throws IOException { |
| 300 | if (value == null) { |
| 301 | return nullValue(); |
| 302 | } |
| 303 | beforeValue(false); |
| 304 | string(value); |
| 305 | return this; |
| 306 | } |
| 307 | |
| 308 | /** |
| 309 | * Encodes {@code null}. |