This message was deleted.
# general
s
This message was deleted.
j
you have to use JSON_VALUE() to pull out individual values ... then they can be treated as individual fields ... is this what you were looking for?
Fyi if you are talking about JSON array elements, that is a different story ... currently they are stored individually like separate fields ... but true handling of such elements as arrays is being worked on ...
t
Not really, I want to get the grouping of keys like in the screenshot
j
So is it JSON_PATHS() that you are looking for?
v
JSON_KEYS
return an array, and you want to make it a multi-value dimension (those group as you desire). What you need is some function that takes an array and gives you a MV. I am not sure that a direct function like that exists @Clint Wylie can tell me if I missed it. As a workaround you could join the array into a string and then split the string into an MV. Try
STRING_TO_MV(MV_TO_STRING(JSON_KEYS("details", '$.'), '#'), '#')
t
Thanks this works awesome
👍 1