is json
testThe safe.parse_json
function returns the JSON value if the argument is valid JSON. Otherwise it returns the SQL null
value.
Similar to the is json
test of standard SQL [safe.]parse_json
allows objects to contain the same key several times.
{"a": 42,
"a": 1}
Google BigQuery: JSON functions: PARSE_JSON
T832, “SQL/JSON path language: item method”
.type()
item method
The safe.parse_json
function is not covered by the international SQL standard ISO/IEC 9075-2:2023.
You can’t catch up on 20 years of SQL evolution in one day. Subscribe the newsletter via E-Mail, Bluesky or RSS to gradually catch up and to keep modern-sql.com on your radar.
The essence of SQL tuning in 200 pages
Buy now!
(paperback and/or PDF)
Paperback also available at Amazon.com.
Markus offers SQL training and consulting for developers working at companies of all sizes.
Learn more »