Follow these steps:
-
Deserialize JSON
jObject = Newtonsoft.Json.JsonConvert.DeserializeObject(Of Newtonsoft.Json.Linq.JObject)(strInputJSON) -
Assign new value to
legalEntity
jObject("legalEntity") = yourVariable -
Serialize JSON
strJsonString = JsonConvert.SerializeObject(jObject)
Before:
After:
Sample Code:
Workflow1.xaml (15.7 KB)
Thanks,
Ashok ![]()


