JsonExtensions extension

Defines extensions on string expressions to support the json1 api from Dart.

on

Methods

jsonArrayLength([String? path]) Expression<int>

Available on Expression<String?>, provided by the JsonExtensions extension

Assuming that this string is a json array, returns the length of this json array.
jsonExtract<T>(String path) Expression<T>

Available on Expression<String?>, provided by the JsonExtensions extension

Assuming that this string is a json object or array, extracts a part of this structure identified by path.