JsonList parser

Hi @tmacgbay
i solved creating my own function after remove double quote and using

let json_tree = parse_json(to_string($message."message_unquote"));
let jsonNode = to_map(json_tree);

my function is named list_fieldKVMap where

for example:

list_fieldKVMap(“DeviceProperties”, jsonNode[“DeviceProperties”], “Name”, “Value”);

So, inside I get the object list and extract the field/value attribute. I add a new field using the parameterKey as key prefix

Remembering the input data:


the output is something like this:

With this approach I can reuse this function for other object list changing the attributes that I have to use for new field generation