public JsonWriter value ( Object value ) throws IOException { Preconditions . checkArgument ( inArray ( ) || writeStack . peek ( ) == JsonTokenType . NAME , "Expecting an array or a name, but found " + writeStack . peek ( ) ) ; writeObject ( value ) ; popIf ( JsonTokenType . NAME ) ; return this ; }
Writes an array value