There is a JSON style (albeit probably not an optimal one) that splits keys and values into separate arrays. A real world example is needing to pair keys in "keys" and values in "values" in the below JSON, such that the Line Protocol output gets pairs like shortterm=0.83:
Note: it can be assumed that these will be ordered appropriately
There is a JSON style (albeit probably not an optimal one) that splits keys and values into separate arrays. A real world example is needing to pair keys in
"keys"
and values in"values"
in the below JSON, such that the Line Protocol output gets pairs likeshortterm=0.83
:Note: it can be assumed that these will be ordered appropriately
This is done in Starlark with
zip()
(snippet):