@Json Object


#1

Hi Team,

How can I create JSON object in Uipath and deserialize it? Just for example purpose.
I am using the below syntax but compiler error in assign activity.
What is the data type for the MyObj varibalr here?

var myObj = { “name”:“John”, “age”:31, “city”:“New York” };

Thanks,
Girish


#2

Hi @Girish,

Kindly check the example attached. The variable myJson is of String type.

Load Config.xaml (9.0 KB)

image

or

image

image

image


#3

Thank you for both solutions like creating the sample JOSN array and reading from file @acaciomelo.

Regards,
Girish