jsonArrayLength method

Expression<int> jsonArrayLength(
  1. [String? path]

Assuming that this string is a json array, returns the length of this json array.

The path parameter is optional. If it's set, it must refer to a valid path in this json that will be used instead of this. See the sqlite documentation for details. If path is an invalid path, this expression can cause an error when run by sqlite.

For this method to be valid, this must be a string representing a valid json array. Otherwise, sqlite will report an error when attempting to evaluate this expression.

See also:


Expression<int> jsonArrayLength([String? path]) {
  return FunctionCallExpression('json_array_length', [
    if (path != null) Variable.withString(path),