I am trying to serialize a complex json. There are arrays within arrays, arrays of objects, etc.
From what I have found through these forums, there are ways to serialize arrays, but doesn’t go into more complex configurations. Ideally I could build a vb.net object and serialize it, however I don’t see that is possible with the out of the box invoke code activity. Is there any other way I could accomplish this?
Thank you!
Edit: I am trying to go from individual data points → JSON string. Not the other way around. From comments I’m getting maybe that was unclear.
Just to clarify - I am trying to go from individual string data points into a JSON formatted string. I am using JsonConvert.SerializeObject(), but that only seems to be handle a single array.
I will likely be using a datatable for the “to”, and a dictionary for the “dynamic_template_data”, “from”, “reply_to”, all else will be primitive data types
The attachment I posted is a nuget package. To use it in your project, add it to the local dependency folder for UiPath. Then in manage packages, add it to the project.