Open this example in the interactive library
Source code
SELECT json_type('{"n":null}','$.n') AS present,json_type('{}','$.n') AS absent;
Sample output
[
{
"present": "null",
"absent": null
}
]
Open this example in the interactive library
SELECT json_type('{"n":null}','$.n') AS present,json_type('{}','$.n') AS absent;
[
{
"present": "null",
"absent": null
}
]