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