Lets say I have arrays with data that will be added to a dictionary like the examples below,
# Element 1
["variant", "hiveCrate", "String"]
# Element 2
["flag", "2", "int"]
# Element 3
["scale", "1.2", "float"]
Index 0 represents the key of the dictionary
Index 1 represents the value of that key
Index 2 represents the class of that value
Which would give an output like so :
{
"variant": "hiveCrate",
"flag": 2,
"scale": 1.2,
}
So far I did something like
dict[dataSet[0]] = dataSet[1]
But I have no idea how to properly set the class for each value, what would be the best way to solve this?