] and segregate into dictionary Please help me with this
iteration we can do with a for each activity - in your case set the typeargument to keyValuePair(Of String, Object)
maybe you eleaborate more on your case and what is intended / what is to achieve
the dictionary is about
an array of Dictionary(Of String, Object) - Level: Enter:1,Enter:2,Enter:3
nested within a Dictionary(Of String, Object) - Level: Submain
nested within a Dictionary(Of String, Object) - Level: Demodata
it requires a multilevel parsing / casting e.g. with direct Cast:
we would recommend following;
- choose another datatype /structure for represent this data
have check if maybe a conversion to a JSON Object can be done within your implementation as the values less complex can be retrieved:
JOConfig = JObject.Parse(JsonConvert.SerializeObject(dictData))
find starter help here:
NestedDicts_HeavyDirectCast_vs_JSONAccess.xaml (11.0 KB)
get prepared for advanced debuging and analyis by the topics demonstrated here:
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum
You iterate through a Dictionary using For Each. The “in” parameter should be yourDictionary.Keys (an array of the keys) and the TypeArgument should be string.
Then to reference the value as it loops, you do youDictionary(currentKey) (assuming you have For Each currentKey in yourDictionary.Keys)
Thank you so much. Now i am using this JObject.Parse(JsonConvert.SerializeObject(dictData)) could you please help for further iteration of 'Newtonsoft.Json.Linq.JObject
just be a little more specific on where you do need help?
what you want to achieve?
Maybe you can also tell us from this nested dictionary comes from and if there is chance to get it restricted e.g. on nesting levels and datatypes. Thanks