- Supports the standard
is jsontest
The 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}Related
- Product Documentation
Google BigQuery: JSON functions: PARSE_JSON
- Standard SQL Features
T832, "SQL/JSON path language: item method"
.type()item method
- Non-Standard Alternatives
- Tutorials
Normative References
The safe.parse_json function is not covered by the international SQL standard ISO/IEC 9075-2:2023.