one of our tables in snowflake contains the below kind of json value stored as a varchar
How do I get to this?
in this example I have achieved this by using SPLIT_PART
Not all values have two keys inside the json:
in the above case I want it to look like this:
And effectively, how to I ensure that I capture the case that more keys and values come into the json?.. 2 more columns?... how can I write a query that can automatically count for all the cases??, or is that not recommended?



