Reputation: 501
I have this JSON data in a BigQuery column:
SELECT JSON '{"$oid":"123"}'
How can I get the $oid value?
$oid
Expected output: 123
Upvotes: 0
Views: 35
SELECT JSON_QUERY(JSON '{"$oid":"123"}', '$."$oid"')