public JsonWriter value ( Map < String , ? > map ) throws IOException { if ( map == null ) { nullValue ( ) ; } else { boolean inObject = inObject ( ) ; if ( ! inObject ) beginObject ( ) ; for ( Map . Entry < String , ? > entry : map . entrySet ( ) ) { property ( entry . getKey ( ) , entry . getValue ( ) ) ; } if ( ! inObject ) endObject ( ) ; } popIf ( JsonTokenType . NAME ) ; return this ; }
Writes a map