SQL: From JSON object select value when key is equal to search term
In Google BigQuery I have a column in a table which contains JSON objects similar to this one select JSON '[{"id":"A","value":"1"},{"id":"B","value":"2"},{"id":"C","value":"John"},{"id":"D","value":null},{"id":"E","value":"random"}]' as JSON_ I want to create a new column with the value of the JSON object where the id…