- Supports the standard
is jsontest
The json_valid function returns 1 if the argument string contains valid JSON. Otherwise it returns null if the input was null or 0 for any non-null non-JSON value.
Similar to the is json test of standard SQL json_valid allows objects to contain the same key several times.
{"a": 42,
"a": 1}Related
- Product Documentation
MariaDB: JSON_VALID
MySQL: Functions That Return JSON Value Attributes: JSON_VALID
SQLite: The json_valid() function (also a two-argument form)
- Standard SQL Features
T832, “SQL/JSON path language: item method”
.type()item method
- Non-Standard Alternatives
- Tutorials
Normative References
The json_valid function is not covered by the international SQL standard ISO/IEC 9075-2:2023.

