private void writeBooleanField ( String fieldName , Object value ) throws IOException { boolean val = ( ( Boolean ) value ) . booleanValue ( ) ; if ( val ) { m_writer . writeNameValuePair ( fieldName , val ) ; } }
Write a boolean field to the JSON file .