Syntax\n------\n\nJSON_LENGTH(json_doc[, path])\n\nDescription\n-----------\n\nReturns the length of a JSON document, or, if the optional path argument is given, the length of the value within the document specified by the path.\n\nReturns NULL if any of the arguments argument are null or the path argument does not identify a value in the document.\n\nAn error occurs if the JSON document is invalid, the path is invalid or if the path contains a  or  wildcard.\n\nLength will be determined as follow:\n\n A scalar's length is always 1.\n If an array, the number of elements in the array.\n If an object, the number of members in the object.\n\nThe length of nested arrays or objects are not counted.\n\nURL: https://mariadb.com/docs/server/reference/sql-functions/special-functions/json-functions/json_length