I set up a dictionary by first creating a JSON string with Keys, Values in a particular order.
Then I use For Each Key in Dictionary to get a list of Keys out... this list is always in alphabetical order, however I would like to be able to keep the original order (as in the JSON string).
The only way I can think of to do this is to have the keys as 01key1, 02key2 etc and then strip out the leading digits after the list is created. However that seems very cumbersome and would mean remembering the appropriate digits for the key for later use, which kind of defeats the whole point of a lookup.
So I suspect I misunderstood where to substitute something for a variable.
However, while working through this I had an AHA moment (more like well DUH actually). Since my keys are in the order I want in the JSON string, then I can simple collect the list from there and then set up the dictionary, rather than try and recreate it from the dictionary.
So you taught me something new and got my brain to work in one go... thank you!