public JsonWriter key ( CharSequence key ) { startKey ( ) ; if ( key == null ) { throw new IllegalArgumentException ( "Expected map key, but got null." ) ; } writeQuotedAndEscaped ( key ) ; writer . write ( ' ' ) ; return this ; }
Write the string as object key .