SQLite JSON_TYPE() Function
Example
Return the type of a value:
SELECT JSON_TYPE('{"names": ["Emil"]}', '$.names');
Try it Yourself »
Definition and Usage
The JSON_TYPE() function returns the type of a JSON value: null, true, false, integer, real, text, array or object.
Note: Read more about JSON in the SQLite JSON chapter.
Syntax
JSON_TYPE(json, path)
Parameter Values
| Parameter | Description |
|---|---|
| json | Required. The JSON text |
| path | Optional. A path to a value inside the JSON |
Technical Details
| Return type: | Text |
|---|