SQLite JSON_QUOTE() Function
Example
Write a text and a number as JSON:
SELECT JSON_QUOTE('Emil'), JSON_QUOTE(3);
Try it Yourself »
Definition and Usage
The JSON_QUOTE() function returns an SQL value written as a JSON value. A text gets double quotes around it.
Note: Read more about JSON in the SQLite JSON chapter.
Syntax
JSON_QUOTE(value)
Parameter Values
| Parameter | Description |
|---|---|
| value | Required. The value |
Technical Details
| Return type: | Text |
|---|