code: private void writeResources() throws IOException
     {
        writeAttributeTypes("resource_types", ResourceField.values());
  
        m_writer.writeStartList("resources");
        for (Resource resource : m_projectFile.getResources())
        {
           writeFields(null, resource, ResourceField.values());
        }
        m_writer.writeEndList();
     }
docs: This method writes resource data to a JSON file.