I am trying to extract values of a certain key in a JSON object with BigQuery. However, the key is unique for each record in the table as shown in the picture. Keys and values
My JSON Object is structured like this: Object's structure
(Note: I am trying to unnest regularHours array that is the value of this unique key.)
I tried using - "SELECT JSON_EXTRACT(response.data, '$.menus') FROM MyDataSet.UberEats" This only gives me the key and its values but I'm only after unnesting the array value of this key and I don't know how to proceed further. (Note: response is the field name)
Please try the following UDF to convert the Dictionary object, as we cannot refer to the Dynamic keys in the Statically typed SQL statement