private void writeStringField ( String fieldName , Object value ) throws IOException { String val = value . toString ( ) ; if ( ! val . isEmpty ( ) ) { m_writer . writeNameValuePair ( fieldName , val ) ; } }
Write a string field to the JSON file .