I want to create JSON body for API. Below String format convert into JSON using JObject or invoke method

My Input String is { “order”: “asc”,
“conversationFilters”: [
{
“predicates”: [
{
“dimension”: “conversation”,
“operator”: “exists”,
“type”: “dimension”
}
],
“type”: “or”
}
],

“interval”: “2023-12-01”}

Need help to cerate JSON for above string

Hi @Rohit_Narkhede

Try this below way:
For Deserialise JSON acitvity download UiPath.DataBase.activities.


Hope it helps!!
Regards

Had you checked Deserialze JSON Activity from UiPath.WebApi.Activities package?

grafik
grafik

As an alternate:
Assign Activity:
myJObject | DataType: JObject=
Newtonsoft.Json.Linq.JObject.Parse(strJSONVar)

grafik

Thank you @vrdabberu

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