[SHARING] parsing dictionaries from [maxurl]
May 06 2018 | 2:41 am
Recently there was some questions about related issues on the forum and most of the problems are connected to the dictionaries. Dictionaries are somewhow hard to handle for many Max users (mainly for those who do not use scripts). From the other hand, writing JS code handling dictionaries is, nearly always, boring and tedious (at least for me).
So, my script is iterating over the dictionary created by the [maxurl], generates and broadcasts set of two-element lists (key name, value) from the dictionary. These lists can be easly handled in your patches using trivial objects, such as [route], etc.
The script gives all keys unique names (naming schame is based on the original dictionary structure, so it's easy to understand) to avoid eventual problems with the keys with overlapping names nested in various parts of the dictionary.
Btw. the script may serve also as an iterator for dictionaries created with different (than [maxurl]) methods - of course, in this case, it may require some sort of fixes, to adapt it to a specific context.