JSON_LENGTH()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SET @json = '{"1": 1, "2": 2, "c": 3}';
SELECT JSON_LENGTH(@json) AS 'var',
JSON_LENGTH('[1, 2, 3]') AS 'array',
JSON_LENGTH('{"a": 1, "b": 2, "c": 3}') AS 'hash';
+------+-------+------+
| var | array | hash |
+------+-------+------+
| 3 | 3 | 3 |
+------+-------+------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.