How to create an arrays with the Instances or objects?

Hi guys,

Student[] studentArray = { 
            new Student() { StudentID = 1, StudentName = "John", Age = 18 },
            new Student() { StudentID = 2, StudentName = "Steve",  Age = 21 },
            new Student() { StudentID = 3, StudentName = "Bill",  Age = 25 },
            new Student() { StudentID = 4, StudentName = "Ram" , Age = 20 },
            new Student() { StudentID = 5, StudentName = "Ron" , Age = 31 },
            new Student() { StudentID = 6, StudentName = "Chris",  Age = 17 },
            new Student() { StudentID = 7, StudentName = "Rob",Age = 19  },
 
How can i create an array like this with instances like StudentID,StudentName,Age....And appropriate datatypes like 2,steve,21..

How can we achieve this in uipath?


Regards,
Sriram

You can use Dictionary for this purpose…

Please follow this. Might help.

You can use JSON for this purpose.

Refer to below post -

Regards,
Karthik Byggari

@poojajoshi1

You mean Array of dictionaries???..

I did not understand karthik…JSON String? Why i need JSOn string?

Sorry I got the question wrong.

Yes.
Dictionary of Array