JSON activities

Hi All,
i need to generate a log file in JSON format. which packages & activities will be needed to do that?

1 Like

Kindly have a view on this thread

Cheers @Abinayaab

1 Like

hmmm thats sounds interesting.You mean you want to generate a log file directly to json format ? But if you have a logfile like Excel,Datatable,Xml theres a lot of components that convert to JSon format. @Abinayaab

cheers :smiley:

Happy learning :smiley:

3 Likes

so is it necessary to put my data in an excel inorder to convert it into json format?
Here is what i did. i used an append line activity and added data in required format in the text, and named it using the datetime activity bz its generated everyday. But it has to be generated in json format. Is there a way to do something like this directly or is it mandatory to store it as a datatable and then convert in json?

1 Like

Not mandatory. You can directly do that with string operations.
You need to construct the json string as shown below.

"{""url"":[""url1"",""url2"",""url3""]}"

And then you can use Deserialise Json activity to read the data.

Regards,
Karthik Byggari

2 Likes

Hi @Abinayaab,
I do not think there are any particular activities in UiPath to produce JSON output.
You could try to find some 3rd party activities in GO! (https://go.uipath.com)

Or you could use directly the Newtonsoft framework for this purpose.

Cheers

3 Likes

Yep I used the variable type from newtonsoft framework. it works. Thanks :relaxed:

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.