SQL · JSON functions

json_type()

The type of a JSON value: object, array, text, integer, real, true, false or null.

Syntax
json_type(json, path)

Example

Open in the lab

More in this group

json ->> operator json_agg() json_array() json_each json_extract() json_object() json_quote() json_remove()

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course