code: private void writeAssignments() throws IOException
     {
        writeAttributeTypes("assignment_types", AssignmentField.values());
  
        m_writer.writeStartList("assignments");
        for (ResourceAssignment assignment : m_projectFile.getResourceAssignments())
        {
           writeFields(null, assignment, AssignmentField.values());
        }
        m_writer.writeEndList();
  
     }
docs: This method writes assignment data to a JSON file.