SQLite JSON() Function
Definition and Usage
The JSON() function checks that a text is valid JSON, and returns it in a minified form, without extra spaces. It gives an error if the text is not valid JSON.
Note: Read more about JSON in the SQLite JSON chapter.
Tip: Also look at JSON_VALID().
Syntax
JSON(json)
Parameter Values
| Parameter | Description |
|---|---|
| json | Required. The JSON text |
Technical Details
| Return type: | Text |
|---|