I'm using bigquery SQL, I had an array which i turned into a json string using:
TO_JSON_STRING(array)
which gives me a field that looks like this:
[{"Key":"helpId","Value":"abcd1234"},{"Key":"userid","Value":"abc123"},{"Key":"accountid","Value":"ab12"}]
i'm trying to extract the keys using this:
JSON_EXTRACT(json_string, '$.Key')
but it keeps returning null - any ideas why?