private void writeIntegerField ( String fieldName , Object value ) throws IOException { int val = ( ( Number ) value ) . intValue ( ) ; if ( val != 0 ) { m_writer . writeNameValuePair ( fieldName , val ) ; } }
Write an integer field to the JSON file .