Encodes the property name. @param name the name of the forthcoming value. May not be null. @return this writer.
(String name)
| 282 | * @return this writer. |
| 283 | */ |
| 284 | public JsonWriter name(String name) throws IOException { |
| 285 | if (name == null) { |
| 286 | throw new NullPointerException("name == null"); |
| 287 | } |
| 288 | beforeName(); |
| 289 | string(name); |
| 290 | return this; |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Encodes {@code value}. |