code: private void writeTimeUnitsField(String fieldName, Object value) throws IOException
     {
        TimeUnit val = (TimeUnit) value;
        if (val != m_projectFile.getProjectProperties().getDefaultDurationUnits())
        {
           m_writer.writeNameValuePair(fieldName, val.toString());
        }
     }
docs: Write a time units field to the JSON file.
  
  @param fieldName field name
  @param value field value